New submission from Neil Harkins :
hi. after using deepcopy() on a nested dict/list structure,
i noticed that modifications to the deepcopied structure were
affecting the original. this looks to me like a serious bug:
>>> import copy
>>> foo = { 'a':[1,2,3
Neil Harkins added the comment:
thanks for the quick response.
that was just my working up a simplified repro, but you are
correct: on modification there, it gets a new id() location.
totally not what i would've expected (python flags
it for copying when it changes, to save space?)
ho
Neil Harkins added the comment:
learn something everyday. i have found the bug in my code,
deepcopy() is not to blame. thx for your time!
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/iss