[C++-sig] Trying to clone Python object from C++ (again)
David Abrahams
dave at boost-consulting.com
Fri Jul 22 13:48:43 CEST 2005
"Paul F. Kunz" <Paul_Kunz at slac.stanford.edu> writes:
> Here's the error message I get from PyErr_Print()
>
> ReferenceError: Attempt to return dangling reference to object of type: boost::python::api::object
Right.
Have you read FAQ #1?
http://www.boost.org/libs/python/doc/v2/faq.html#dangling
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list