[issue22305] Documentation on deepcopy's problems is misleading

2014-10-28 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22305 ___ ___ Python-bugs-list

[issue22305] Documentation on deepcopy's problems is misleading

2014-08-30 Thread Shailesh Hegde
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

[issue22305] Documentation on deepcopy's problems is misleading

2014-08-30 Thread Steven D'Aprano
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

[issue22305] Documentation on deepcopy's problems is misleading

2014-08-30 Thread Shailesh Hegde
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. --