create a new instance in C of a Python subclass

Paul Miller paul at fxtech.com
Fri Apr 18 09:56:48 EDT 2003


>You do the same as in Python: call the type.

How would I do that from C? 

Right now I'm just calling PyObject_NEW, but it doesn't seem to be calling
the subclass's (Python) __init__(). 






More information about the Python-list mailing list