From ab16dc180e362e4cdb9eb163fae0a75664dcea3e Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sun, 9 Apr 2017 20:57:29 +1000 Subject: bpo-29506: Clarify deep copy note in copy module 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. Patch by Sanyam Khurana. --- Doc/library/copy.rst | 4 ++-- Misc/ACKS | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/copy.rst b/Doc/library/copy.rst index a5378e5..67cf65a 100644 --- a/Doc/library/copy.rst +++ b/Doc/library/copy.rst @@ -43,8 +43,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: diff --git a/Misc/ACKS b/Misc/ACKS index cacf7e5..899a190 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -712,6 +712,7 @@ Magnus Kessler Lawrence Kesteloot Vivek Khera Dhiru Kholia +Sanyam Khurana Mads Kiilerich Jason Killen Jan Kim -- cgit v0.12