It's quite early to claim problem (completely) solved. Niether of described mechanismes would help you if class Test is wrapped and derived from and require PyObject alive along with. As well as Peter's shared_ptr patches to date.
Because boost::python::object::ob_refcnt does not increases/decreases on creation/deletion of an shared_ptr constructed from shared_from_this(). Any ideas?.. -- View this message in context: http://www.nabble.com/Bug-and-patch-for-boost.python-with-enable_shared_from_this-tp15403999p22722146.html Sent from the Python - c++-sig mailing list archive at Nabble.com. _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig