runtime type information in python?

Issac Trotts trotts at mit.edu
Wed Aug 23 01:16:26 EDT 2000


Suppose I execute the following code:

class C: pass
class B(C): pass
b=B();

How do I find out what kind of object b is?
How can I find out whether b is-a C?

Thanks,
Issac






More information about the Python-list mailing list