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

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Sun May 10 05:13:37 CEST 2009


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: Gennadiy Rozental <rogeeff at gmail.com>
To: cplusplus-sig at 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



More information about the Cplusplus-sig mailing list