Accessing base class C struct of subclass instance

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

Nick Bastin <nbastin@opnet.com>:
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?
What do you mean by "base class instance object"? That's a meaningless combination of words to me. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+

Nick Bastin <nbastin@opnet.com>:
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?
What do you mean by "base class instance object"? That's a meaningless combination of words to me. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+
participants (2)
-
Greg Ewing
-
Nick Bastin