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

Skip to content

Commit 5b14d73

Browse files
committed
Issue #9021 - Introduce copy module better. Doc changes suggested by Terry
Reedy.
1 parent 6e13f13 commit 5b14d73

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Doc/library/copy.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
.. module:: copy
55
:synopsis: Shallow and deep copy operations.
66

7-
This module provides generic (shallow and deep) copying operations.
7+
Assignment statements in Python do not copy objects, they create bindings
8+
between a target and an object. For collections that are mutable or contain
9+
mutable items, a copy is sometimes needed so one can change one copy without
10+
changing the other. This module provides generic shallow and deep copy
11+
operations (explained below).
812

913

1014
Interface summary:

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ Core and Builtins
113113
Library
114114
-------
115115

116+
- Issue #9021: Add an introduction to the copy module documentation.
117+
116118
- Issue #6005: Examples in the socket library documentation use sendall, where
117119
relevant, instead send method.
118120

0 commit comments

Comments
 (0)