Re: [C++-sig] Getting the same python instance back in boost::python?

2019-06-28 Thread Stefan Ring
On Fri, Jun 28, 2019 at 2:16 PM Nicholas Devenish wrote: > > I want to get the same python instance back for subsequent calls to > the C++ function e.g. I want this to work for the C++ structure below: > > import ident_ext > o = ident_ext.Owner() > assert o.get() is o.get() > > How can

[C++-sig] Getting the same python instance back in boost::python?

2019-06-28 Thread Nicholas Devenish
I want to get the same python instance back for subsequent calls to the C++ function e.g. I want this to work for the C++ structure below: import ident_ext o = ident_ext.Owner() assert o.get() is o.get() How can I get this behaviour in boost::python? It looked like call policies was t