Checking for the type "class ObjectWrapper"

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

Maybe you can try isSequence?

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.

2 Likes

thanks for the tips!