]> granicus.if.org Git - python/commitdiff
bpo-29506: Clarify deep copy note in copy module
authorSanyam Khurana <CuriousLearner@users.noreply.github.com>
Sun, 9 Apr 2017 10:22:30 +0000 (15:52 +0530)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 9 Apr 2017 10:22:30 +0000 (20:22 +1000)
The reference to administrative data was confusing to readers,
so this simplifies the note to explain that deep copying may copy
more then you intended, such as data that you expected to be
shared between copies.

Doc/library/copy.rst
Misc/ACKS

index d0b861d469bc05f982fff01ac66d8af2d66d2624..2041d9175ea5878555877a5d3a1c97645c3f642a 100644 (file)
@@ -47,8 +47,8 @@ copy operations:
 * Recursive objects (compound objects that, directly or indirectly, contain a
   reference to themselves) may cause a recursive loop.
 
-* Because deep copy copies *everything* it may copy too much, e.g.,
-  even administrative data structures that should be shared even between copies.
+* Because deep copy copies everything it may copy too much, such as data
+  which is intended to be shared between copies.
 
 The :func:`deepcopy` function avoids these problems by:
 
index 70678c3c2fe71a32fea21edb6548b041b05c2069..962a3c757a365f135dd97bd9f36fb5637eab871b 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -773,6 +773,7 @@ Lawrence Kesteloot
 Vivek Khera
 Dhiru Kholia
 Akshit Khurana
+Sanyam Khurana
 Mads Kiilerich
 Jason Killen
 Jan Kim