Skip to content

Commit bd18351

Browse files
authored
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. (cherry picked from commit 19e0494)
1 parent c82d394 commit bd18351

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/library/copy.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ copy operations:
4747
* Recursive objects (compound objects that, directly or indirectly, contain a
4848
reference to themselves) may cause a recursive loop.
4949

50-
* Because deep copy copies *everything* it may copy too much, e.g.,
51-
even administrative data structures that should be shared even between copies.
50+
* Because deep copy copies everything it may copy too much, such as data
51+
which is intended to be shared between copies.
5252

5353
The :func:`deepcopy` function avoids these problems by:
5454

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,7 @@ Lawrence Kesteloot
759759
Vivek Khera
760760
Dhiru Kholia
761761
Akshit Khurana
762+
Sanyam Khurana
762763
Mads Kiilerich
763764
Jason Killen
764765
Jan Kim

0 commit comments

Comments
 (0)