How to get the types of the parents of an object ?

christophe grimault christophe.grimault at novagrid.com
Tue Jan 21 07:25:32 EST 2003


Hi,

I need to control the type of some arguments passed to a constructor. 
Specifically,
my classes inherit of 'object', so

type(my_object)

returns

my_class

Now my_class is a child of my_super_class. And I want to check if
my_object is an instance of my_super_class.

How can I do that

Thanks in advance,

Chris





More information about the Python-list mailing list