[C++-sig] Return value policy for property

Koen Van Herck koen_van_herck at yahoo.com
Mon Dec 12 14:20:25 CET 2005


Hello,

I have a member function that I've wrapped as
.def("getTime", &MyClass::getTime, return_value_policy<manage_new_object>())

Now I want to call the same function (getTime) as a Python property:
.add_property("time", ???)

How do I specify the 'manage_new_object' return value policy ?

Regards,
Koen Van Herck.




More information about the Cplusplus-sig mailing list