[issue9021] no copy.copy problem description

Terry J. Reedy report at bugs.python.org
Mon Jun 21 21:13:53 CEST 2010


Terry J. Reedy <tjreedy at udel.edu> added the comment:

The intro paragraph currently (3.2a) consists of
"This module provides generic (shallow and deep) copying operations."

This could be expanded to '''
Assignment statements create bindings between a target and an object. They never duplicate or copy an existing 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. Sequences can be shallow copied by slicing the entire sequence(s[:]). (See below for the meaning of 'shallow'.) Some objects can be shallow copied with their class constructors (tuple, list, set, dict). This module provides generic shallow *and* deep copying operations. The latter is not otherwise available in an single operation or call.'''

----------
nosy: +tjreedy
versions: +Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9021>
_______________________________________


More information about the Python-bugs-list mailing list