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

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


On Apr 30, 2004, at 2:01 PM, Nick Bastin wrote:

> 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?

Nevermind...the obvious solution works correctly.

--
Nick




More information about the Python-Dev mailing list