Inheritance in extension type

Skip Montanaro skip at pobox.com
Wed Jul 18 00:00:42 EDT 2001


    Lothar> I'm writting a C extension and i define two types A and B.  How
    Lothar> can i specify that B inherits from A.

That's not supported directly by the Python core.  There is a version of
Digital Creations' ExtensionClass module that supports this, however.  Take
a look at the ExtensionClass.[ch] that comes with recent (development)
versions of PyGtk2:

    http://www.gnome.org/~james/

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list