[C++-sig] Trying to clone Python object from C++ (again)
Paul F. Kunz
Paul_Kunz at slac.stanford.edu
Fri Jul 22 17:05:59 CEST 2005
>>>>> On Fri, 22 Jul 2005 07:48:43 -0400, David Abrahams <dave at boost-consulting.com> said:
> "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
I have now, thanks for the pointer. Actually, it is #2.
Anyway, I found an alternative to what was trying to be
accomplished, so I don't need this clone() function anymore.
Thanks again for your help.
More information about the Cplusplus-sig
mailing list