Re: [C++-sig] how to deep copy boost python object

2009-05-11 Thread Matthew Scouten (TT)
n.org] On Behalf Of Gennadiy Rozental Sent: Monday, May 11, 2009 12:47 AM To: cplusplus-sig@python.org Subject: Re: [C++-sig] how to deep copy boost python object Ralf W. Grosse-Kunstleve yahoo.com> writes: > > > A comprehensive approach is to make the object picklable. > As a si

Re: [C++-sig] how to deep copy boost python object

2009-05-10 Thread Gennadiy Rozental
Ralf W. Grosse-Kunstleve yahoo.com> writes: > > > A comprehensive approach is to make the object picklable. > As a side-effect, copy.deepcopy() will also work. 1. Are you saying that copy.deepcopy does not work without object being picklable? What will happend if I try to use it for non pickla

Re: [C++-sig] how to deep copy boost python object

2009-05-09 Thread Ralf W. Grosse-Kunstleve
: Gennadiy Rozental To: cplusplus-sig@python.org Sent: Monday, May 4, 2009 11:59:45 PM Subject: [C++-sig] how to deep copy boost python object This looks like trivial question from FAQ, but I can seem to fond the answer. Any pointers? Genandiy

Re: [C++-sig] how to deep copy boost python object

2009-05-05 Thread Gennadiy Rozental
Neal Becker gmail.com> writes: > > Gennadiy Rozental wrote: > > > This looks like trivial question from FAQ, but I can seem to fond the > > answer. > > > > Any pointers? > > > > Genandiy > > Maybe overide __copy__? How is it involved? Here is an example: bp::object o = foo(); // Here i w

Re: [C++-sig] how to deep copy boost python object

2009-05-05 Thread Neal Becker
Gennadiy Rozental wrote: > This looks like trivial question from FAQ, but I can seem to fond the > answer. > > Any pointers? > > Genandiy Maybe overide __copy__? ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/

[C++-sig] how to deep copy boost python object

2009-05-05 Thread Gennadiy Rozental
This looks like trivial question from FAQ, but I can seem to fond the answer. Any pointers? Genandiy ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig