summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-02-09 10:22:01 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-02-09 10:22:01 (GMT)
commit59e7c8f1779254a6a5974ca329eb6f2438e1f6e1 (patch)
treeec33ea68ef595c00fc92bd8af705f5bde13974b6 /Doc
parent607e31eddf07865fa6308cb7f5e2f75d290d1bda (diff)
downloadcpython-59e7c8f1779254a6a5974ca329eb6f2438e1f6e1.zip
cpython-59e7c8f1779254a6a5974ca329eb6f2438e1f6e1.tar.gz
cpython-59e7c8f1779254a6a5974ca329eb6f2438e1f6e1.tar.bz2
Issue #9021: Add an introduction to the copy module. Doc changes suggested by Terry Reedy.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/copy.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/copy.rst b/Doc/library/copy.rst
index b3ce51f..0f23a95 100644
--- a/Doc/library/copy.rst
+++ b/Doc/library/copy.rst
@@ -4,7 +4,11 @@
.. module:: copy
:synopsis: Shallow and deep copy operations.
-This module provides generic (shallow and deep) copying operations.
+Assignment statements in Python do not copy objects, they create bindings
+between a target and an object. For collections that are mutable or contain
+mutable items, a copy is sometimes needed so one can change one copy without
+changing the other. This module provides generic shallow and deep copy
+operations (explained below).
Interface summary: