Wrapping a C++ class.
Jacek Generowicz
jacek.generowicz at cern.ch
Wed Feb 26 08:58:04 EST 2003
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.
More information about the Python-list
mailing list