David Abrahams <dave <at> boostpro.com> writes: > So extract and return a shared_ptr<Base>. That will maintain ownership > of the Python object for you. Can't do. Factory methods are required to produce Base*. Plus in am forces to use intrusive ref counting