This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients docs@python, giampaolo.rodola, techtonik, terry.reedy
Date 2010-06-21.19:21:47
SpamBayes Score 0.03933549
Marked as misclassified No
Message-id <1277148108.9.0.805678976256.issue9021@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2010-06-21 19:21:49terry.reedysetrecipients: + terry.reedy, techtonik, giampaolo.rodola, docs@python
2010-06-21 19:21:48terry.reedysetmessageid: <1277148108.9.0.805678976256.issue9021@psf.upfronthosting.co.za>
2010-06-21 19:21:47terry.reedylinkissue9021 messages
2010-06-21 19:21:47terry.reedycreate