C API ?: checking if an object is a class

Tavis Rudd tavis at calrudd.com
Sat Aug 11 22:34:06 CEST 2001

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?


More information about the Python-list mailing list