From: Senthil Kumaran Date: Thu, 9 Feb 2012 10:22:01 +0000 (+0800) Subject: Issue #9021: Add an introduction to the copy module. Doc changes suggested by Terry... X-Git-Tag: v2.7.3rc1~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59e7c8f1779254a6a5974ca329eb6f2438e1f6e1;p=python Issue #9021: Add an introduction to the copy module. Doc changes suggested by Terry Reedy. --- diff --git a/Doc/library/copy.rst b/Doc/library/copy.rst index b3ce51f57e..0f23a95398 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: diff --git a/Misc/NEWS b/Misc/NEWS index fec58eae61..e912b49c45 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -90,6 +90,8 @@ Core and Builtins Library ------- +- Issue #9021: Add an introduction to the copy module documentation. + - Issue #6005: Examples in the socket library documentation use sendall, where relevant, instead send method.