C API ?: checking if an object is a class

Tavis Rudd tavis at calrudd.com
Sat Aug 11 16:34:06 EDT 2001


Hi,
how do I check if a PyObject is a class object?
Is there any equivalent of PyInstance_Check() that can do 
this or do I need to use PyObject_Type()?  If it's the 
later where do I get the 'class' PyType object?

Cheers,
Tavis 




More information about the Python-list mailing list