[pygccxml-development] Cloning an object which has been wrapped
Brought to you by:
mbaas,
roman_yakovenko
From: Vincent F. <vin...@gm...> - 2008-09-24 10:26:31
|
I've got the following problem : I wrap a complex object, we will call it MyObject. If I modify data in MyObject using some of my wrapped methods, MyObject content will be changed. I'd like to create a copy from my base MyObject and work on a clone, to ensure I keep the initial data safe. I tried using copy and deepcopy from the python copy module but without success. The initial C++ object doesn't have any clone method. Does someone has an idea how I could do this? Thanks in advance! |