Hello Denis, >> I'm trying to embed Python in a C application. >> What I didn't find is how to create an instance once I have a class object. > > Class is a callable object. Just call it to create instance. > ... > obj = PyObject_CallObject(A, NULL); Thanks.
After grepping the Python sources I've found about obj = PyInstance_New(A, NULL, NULL) which worked for me. Bye. -- ------------------------------------------------------------------------ Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys
pgptzm904CwQ4.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list