cpython: bf6f306ad5cf (original) (raw)
Mercurial > cpython
changeset 74849:bf6f306ad5cf
merge from 3.2 Issue #9021 - Introduce copy module better in the docs. [#9021]
Senthil Kumaran senthil@uthcode.com | |
---|---|
date | Thu, 09 Feb 2012 18:27:48 +0800 |
parents | e9c3df45920e(current diff)a352e24b9907(diff) |
children | 0fc10a33eb4c |
files | Misc/NEWS |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-)[+] [-] Doc/library/copy.rst 6 Misc/NEWS 2 |
line wrap: on
line diff
--- 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:
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -484,6 +484,8 @@ Library make sure two listeners can't bind to the same socket/pipe (or any existing socket/pipe). +- Issue #9021: Add an introduction to the copy module documentation. +