Wrapping a C++ class.

Thomas Heller theller at python.net
Wed Feb 26 10:18:43 EST 2003


Jacek Generowicz <jacek.generowicz at cern.ch> writes:

> Jacek Generowicz <jacek.generowicz at cern.ch> writes:
> 
> > Does the current _Extending and Embedding the Python
> > Interprer_ document reflect the changes introduced by type/class
> > unification? (I haven't managed to write an extension type which is an
> > "acceptable base type", yet.)
> 
> By looking at the source code for built-in types, I have discovered
> the flag Py_TPFLAGS_BASETYPE, which makes the type subclassable. The
> flag seems not to be mentioned in the documentation.

You have to use the 'devel' version of the docs.

http://starship.python.net/crew/theller/pyhelp.cgi?keyword=Py_TPFLAGS_BASETYPE&version=devel

Thomas




More information about the Python-list mailing list