Copy an Object (Again?)
bobrien18 at yahoo.com
Fri Jan 6 17:39:15 CET 2006
I'm having trouble getting a copy of and object... (a deep copy)
I'm writing a method that creates a mirror image of an object (on
In order to do this i need to get a copy of the object and then modify
of its attributes.
objs = myListOfObjects
for obj in objs:
newObject = copy.deepcopy(obj)
That doesn't seem to work.. the new object seems to disapear from
I'm wondering if its a bug in my application or if this is my shallow
understanding of the language.
More information about the Python-list