Gabriel Genellina wrote: > En Mon, 21 Apr 2008 10:24:15 -0300, grbgooglefan <[EMAIL PROTECTED]> > escribió: > >> I am trying to pass a C++ object to Python function. This Python >> function then calls another C++ function which then uses this C++ >> object to call methods of that object's class. >> >> I tried something like this, but it did not work, gave core dump. > > You can't pass any arbitrary C object to a Python function. > In this case you can use a PyCObject, a Python box around a void* pointer. > See http://docs.python.org/api/cObjects.html >
Neat! Didn't know about that one. Diez -- http://mail.python.org/mailman/listinfo/python-list