
24 Feb
2003
24 Feb
'03
10:03 p.m.
"mghiggins
Excuse my newbiness if this question is too dumb... :)
I've built a python extension from a C++ class using boost - it all seems to work fine.
However, now another C++ function is receiving a pointer to a PyObject that represents an instance of this "boosted" python class. How do I pick off a pointer to the underlying C++ object from the PyObject pointer?
Boost.Python questions to the c++-sig, please!
http://www.python.org/sigs/c++-sig/
Your answer:
void f(PyObject* p)
{
handle<> ph(borrowed(p));
MyObj* op = extract