Python Inheritance - A C example (without third party libraries)
Fredrik Lundh
fredrik at pythonware.com
Sat May 12 08:50:03 EDT 2001
Courageous wrote:>
> >Can someone give me a source code example of how to derive a python class
> >(written in C) ....
>
> There are no classes in C.
note that you can implement Python classes in C. see
Python/exceptions.c for an example.
(not sure it's a good idea, though: Python things are usually
better done with Python code...)
Cheers /F
More information about the Python-list
mailing list