some thing aboute the PyTypeObject struct.
Martin von Loewis
loewis at informatik.hu-berlin.de
Mon May 29 11:58:29 EDT 2000
"Sameh chafik pro" <chafik at nevrax.com> writes:
> I want to question you about the PyTypeObject struct.
> At prensent i try to export an agents lib write in C++ to Python and i want
> to know is that is possible to set the hierarchy of a given class for mor
> efficient translation code. I want to know if for a given class B derived
> from a class A i can say that in the PyTypeObject struct or with an other
> struct ?
You can't have inheritance relationship between builtin types
automatically. However, please have a look at the extension classes
framework; I believe they support such a mechanism.
Regards,
Martin
More information about the Python-list
mailing list