Creating Python Class Instances From C API

bill barrington bill.barrington at turner.com
Tue Oct 12 10:55:38 EDT 1999


    I would like to create a python class instance using the python/C
API for eventual return back into "python space".  IOW, I want to
accomplish the equivalent of the following python code, but from within
an extension:

instance = Class(<whatever>)

...and then return the newly created instance.

    Anyone know how to do this?

--
Bill Barrington
CNN Interactive - http://cnn.com
bill.barrington at cnn.com
404 827-5572







More information about the Python-list mailing list