How can I get a PyObject reference to an object already created?
drugar at my-deja.com
drugar at my-deja.com
Thu Mar 16 18:49:52 EST 2000
In particular this is Win32 project that embeds the python
interpretor. Can I get a PyObject reference to an object that is
created by a script?
For example:
PyRun_SimpleString("import CustomScript\n");
PyRun_SimpleString("t=CustomClass()\n");
Is there anyway to get a reference to t? or any other object that is
created by importing CustomScript? Assuming I know it's "name".
Thanks
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list