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.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to