Creating a python object from C

M.-A. Lemburg mal at lemburg.com
Thu Sep 9 05:31:21 EDT 1999


Jacques Oosthuizen wrote:
> 
> Is it possible to instantiate a python object from a C module.!!!!

Yes, all you have to do is call the Python class object with
the constructor arguments, e.g. use PyObject_Call*(). It will
then return an instance.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Y2000:                                                   113 days left
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/






More information about the Python-list mailing list