[C++-sig] Copying objects derived in python from C++?

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Thu Jun 7 01:57:37 CEST 2007


This could be connected to missing pickle support. I think copy.copy() essentially pickles/unpickles to make the copy.
I'd think if you add pickle support to your class it will work.
I'm not sure about the details. See the "pickle suite" docs (link on main Boost.Python page).
Ralf

----- Original Message ----
From: Mark Williams <mark at image-engine.com>
To: c++-sig at python.org
Sent: Wednesday, June 6, 2007 1:35:26 PM
Subject: [C++-sig] Copying objects derived in python from C++?

d_copy = copy.copy(d)
func(d_copy)







 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070606/eecc0c01/attachment.htm>


More information about the Cplusplus-sig mailing list