Terry J. Reedy <tjre...@udel.edu> added the comment:

Shorter and better version.

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. This module provides generic shallow and deep copy 
operations (explained below). Shallow copies can also be obtained by whole 
sequence slicing (s[:]) and some class constructors (tuple, list, set, dict).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9021>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to