# Checking for the type "class ObjectWrapper"

**URL:** <https://forum.inductiveautomation.com/t/checking-for-the-type-class-objectwrapper/93305>\
**Category:** Ignition\
**Created:** [July 16, 2024, 9:07pm UTC](https://forum.inductiveautomation.com/t/checking-for-the-type-class-objectwrapper/93305 "2024-07-16T21:07:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [July 16, 2024, 9:07pm UTC](https://forum.inductiveautomation.com/t/checking-for-the-type-class-objectwrapper/93305/1 "2024-07-16T21:07:03Z")

</div>

I'm looping a table dataset and parsing the results. I have two tables with the same data but are presented in different ways. One table has editable columns while the other doesn't, this changes the dataset when I'm looping.

What I am hoping to do is check the data type and if I find that its the class ObjectType, I know I need to parse it differently.

When I tried to use isclass , type == 'class' or ObjectType its not matching.How are you checking for a class Objectype?

Thanks for the info

---

<div class="post-metadata">

**Author:** ![drojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drojas/32/3403_2.png) [@drojas](https://forum.inductiveautomation.com/u/drojas)\
**Post date:** [July 16, 2024, 9:44pm UTC](https://forum.inductiveautomation.com/t/checking-for-the-type-class-objectwrapper/93305/2 "2024-07-16T21:44:08Z")

</div>

Maybe you can try isSequence?

> [@How to check type of PyRow](https://forum.inductiveautomation.com/t/how-to-check-type-of-pyrow/89864/2):
>
> Or you could import and use `com.inductiveautomation.ignition.common.PyUtilities.isSequence` - which will return `True` for sequence-like things but _not_ Python strings.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 17, 2024, 3:27pm UTC](https://forum.inductiveautomation.com/t/checking-for-the-type-class-objectwrapper/93305/3 "2024-07-17T15:27:51Z")

</div>

As I mentioned on your other post, explicit checks for subtypes is probably the wrong way to go here. I would strongly suggest duck typing - if whatever object you get has a `keys()` method, for instance, it's a dictionary(like) and you can treat it as such.

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [July 17, 2024, 4:17pm UTC](https://forum.inductiveautomation.com/t/checking-for-the-type-class-objectwrapper/93305/4 "2024-07-17T16:17:20Z")

</div>

thanks for the tips!
