Skip to content

Commit ab16dc1

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. Patch by Sanyam Khurana.
1 parent d6d943a commit ab16dc1

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
@@ -43,8 +43,8 @@ copy operations:
4343
* Recursive objects (compound objects that, directly or indirectly, contain a
4444
reference to themselves) may cause a recursive loop.
4545

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

4949
The :func:`deepcopy` function avoids these problems by:
5050

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,7 @@ Magnus Kessler
712712
Lawrence Kesteloot
713713
Vivek Khera
714714
Dhiru Kholia
715+
Sanyam Khurana
715716
Mads Kiilerich
716717
Jason Killen
717718
Jan Kim

0 commit comments

Comments
 (0)