Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a524d63

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 4c116cb commit a524d63

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

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
@@ -770,6 +770,7 @@ Lawrence Kesteloot
770770
Vivek Khera
771771
Dhiru Kholia
772772
Akshit Khurana
773+
Sanyam Khurana
773774
Mads Kiilerich
774775
Jason Killen
775776
Jan Kim

0 commit comments

Comments
 (0)