Subclassable C Extension

Skip Montanaro skip at mojam.com
Wed Feb 16 11:32:20 EST 2000


    Joel> How does one write a subclassable C extension? I've written C
    Joel> extensions, but can't seem to figure out how to make it
    Joel> subclassable. I've tried using the CXX files from
    Joel> somewhereoranother, but that seems to GPF/coredump. I'll take
    Joel> examples, URL's to examples, or whatever. Thanks.

You can't subclass types defined in vanilla extension modules.  Check out
Digital Creations' ExtensionClass module, available as part of Zope
(http://www.zope.org/).

Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
"Languages that change by catering to the tastes of non-users tend not to do
so well." - Doug Landauer




More information about the Python-list mailing list