Message249755
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. |
|
Date |
User |
Action |
Args |
2015-09-04 11:48:46 | martin.panter | set | recipients:
+ martin.panter, georg.brandl, steven.daprano, r.david.murray, docs@python, matheus.v.portela, Abraham.Smith |
2015-09-04 11:48:46 | martin.panter | set | messageid: <1441367326.63.0.570144590857.issue23406@psf.upfronthosting.co.za> |
2015-09-04 11:48:46 | martin.panter | link | issue23406 messages |
2015-09-04 11:48:46 | martin.panter | create | |
|