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
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
A comprehensive approach is to make the object picklable.
As a side-effect, copy.deepcopy() will also work.
http://www.boost.org/doc/libs/1_39_0/libs/python/doc/v2/pickle.html
(In many cases - in my experience - making an object picklable is very simple.)
- Original Message
From: Gen
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
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/