[Python-Dev] Accessing base class C struct of subclass instance

Nick Bastin nbastin at opnet.com
Fri Apr 30 14:01:40 EDT 2004


Ok, strange subject, but I have what seems like a simple question that 
the documentation doesn't seem to cover (and a quick perusal of the 
code doesn't answer, either).

If I define a new style class in C, and subclass it in python, how can 
I get the base class instance object from a subclass instance in C?

--
Nick




More information about the Python-Dev mailing list