Is 'x' an instance of a new-style class?

MatthewS schaefer.mp at gmail.com
Tue Sep 16 10:26:14 CEST 2008


I've seen the question raised several times here, but apparently never
answered. Since PyInstance_Check returns False for new-style class
instances, is there a standard procedure for testing this using the C-
Api?

I would greatly appreciate some help with this.

/Matthew




More information about the Python-list mailing list