How can I get a PyObject reference to an object already created?
yuriy at centricsoftware.com
Fri Mar 17 04:21:41 CET 2000
You can try this function:
PyObject* PyRun_String (char *str, int start, PyObject *globals,
But I can't find the description of it in documentation.
I'm doing this way:
m_PyPublishModule = PyImport_ImportModule("CustomScript");
PyObject* pPyNewObject = PyObject_CallMethod(m_PyPublishModule,
// Do Your Work
drugar at my-deja.com wrote in message <8arruu$dpm$1 at nnrp1.deja.com>...
>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?
>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".
>Sent via Deja.com http://www.deja.com/
>Before you buy.
More information about the Python-list