[C++-sig] Python __init__ that copies internal reference, boost.python

2010-08-16 Thread Branan Purvine-Riley
I'm working on replacing hand-rolled python bindings with boost.python. Unfortunately, I've hit a bit of a snag at a particular construct: a = someFunction(...) # returns an instance of myClass b = myClass(a) In the current bindings, this creates a new python object that references the same

Re: [C++-sig] Python __init__ that copies internal reference, boost.python

2010-08-16 Thread Branan Purvine-Riley
On Monday 16 August 2010 14:49:04 Jim Bosch wrote: > On 08/16/2010 02:33 PM, Branan Purvine-Riley wrote: > > I'm working on replacing hand-rolled python bindings with boost.python. > > > > Unfortunately, I've hit a bit of a snag at a particular construct: > >