Changes by Georg Brandl ge...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22305
___
___
Python-bugs-list
New submission from Shailesh Hegde:
https://docs.python.org/version/library/copy.html
Two problems often exist with deep copy operations that don’t exist with
shallow copy operations:
Recursive objects (compound objects that, directly or indirectly, contain a
reference to themselves) may
Steven D'Aprano added the comment:
It should read:
administrative data structures that should be not shared
even between copies
No. If they should NOT be shared, then making a deep copy is the correct thing
to do. The problem with deepcopy is when you actually do want to share some
deep
Shailesh Hegde added the comment:
Thanks.
Because deep copy copies everything it may copy too much, e.g., administrative
data structures that need to be shared even between copies, which may not be
the desired goal.
helps me understand better.
--