Skip to content

Commit 19e0494

Browse files
CuriousLearnerncoghlan
authored andcommitted
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.
1 parent 0e6cb2e commit 19e0494

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
@@ -773,6 +773,7 @@ Lawrence Kesteloot
773773
Vivek Khera
774774
Dhiru Kholia
775775
Akshit Khurana
776+
Sanyam Khurana
776777
Mads Kiilerich
777778
Jason Killen
778779
Jan Kim

0 commit comments

Comments
 (0)