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 martin.panter
Recipients Abraham.Smith, docs@python, georg.brandl, martin.panter, matheus.v.portela, r.david.murray, steven.daprano
Date 2015-09-04.11:48:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441367326.63.0.570144590857.issue23406@psf.upfronthosting.co.za>
In-reply-to
Content
I was about to commit this, but I think I was wrong about one of my comments. The list that is multiplied is indeed shallow-copied. E.g. “[x] * 1” copies the list, but the reference to x is the same. I propose to commit the second patch, except to revert one of the sentences to the first patch, so it reads:

Note also that the copies are shallow; nested structures are not copied but referenced.
History
Date User Action Args
2015-09-04 11:48:46martin.pantersetrecipients: + martin.panter, georg.brandl, steven.daprano, r.david.murray, docs@python, matheus.v.portela, Abraham.Smith
2015-09-04 11:48:46martin.pantersetmessageid: <1441367326.63.0.570144590857.issue23406@psf.upfronthosting.co.za>
2015-09-04 11:48:46martin.panterlinkissue23406 messages
2015-09-04 11:48:46martin.pantercreate