extending Python base class in C

Scott David Daniels Scott.Daniels at Acm.Org
Tue Jun 14 15:01:31 EDT 2005


harold fellermann wrote:
> ...
> This gives me a pointer to the class I want to use as base class.
> Does anyone know how to assign this to the extension class? I tried
> to build a tuple (BaseClass,) and assign it (after the respective
> PyType_Ready call) ...
I think this is your problem -- call PyType_Ready _after_ setting up
the base class, not before.

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list