Re: True Inheritable Classes In C (was Generic Interface)

Donald Beaudry (don@dvcorp.com)
Thu, 02 Mar 1995 08:25:26 -0500

In your message dated 02 Mar 1995 08:33:32 GMT, you wrote

> Is there currently any way to create an object in C, which is an actual
> python "Class" object and can be used as a superclass in new Python [and C]
> objects? The application I am wanting to use this for is in a GUI -- I
> need to make a base "Widget" class in C, which can be subclasses in Python
> to do special interface handling and creating specialized classes.
> Basically the standard OO approach to GUIs.

Currently this functionality does not exist. Not unless you implement
your own Class/Instance classes and find a way to get the intepreter
to instantiate them when it executes a 'class' statement. But, it
just so happens that I have done this. Version 1.2 of Python has the
necessary hooks in place to make it work, and I have a whole pile of
code for doing the sub-classing. All it needs now is a little bit of
documentation (well maybe a lot of documentation). You can expect to
see a public release of my extentions shortly after the official
public release of 1.2. For more information you might take a look at
the paper I wrote for last November's workshop.

http://www.eeel.nist.gov:80/python/workshop11-94/

Feel free to ask questions, I have to start on the documentation sometime :)

--
Donald Beaudry                                DataViews Corporation
Software Engineer                             47 Pleasant Street
don@dvcorp.com                                Northampton, MA 01060
		  "So much code, so little time..."