Pass pointer from C++ class to Boost Python script ?!!!
Mavuram, Vishnu (IT)
Vishnu.Mavuram at morganstanley.com
Tue Sep 6 14:20:08 EDT 2005
Hi,
Did you get an answer to this posting of yours?
What I am trying to do is:
struct Sec
{
...
};
int main(int, char **)
{
Py_Initialize();
...
Sec *s1 = new Sec();
PyObject *args = Py_BuildValue("(O)", s1); //*** this is where I am
having problem
...
PyObject* res = PyEval_CallObject( func, args);
...
Py_Finalize();
return 0;
}
Can you please tell me how to get convert my pointer to a valid
PyObject*?
Thanks,
Vishnu Mavuram
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
More information about the Python-list
mailing list