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 skip.montanaro
Recipients ned.deily, ronaldoussoren, skip.montanaro, vasya yugov
Date 2015-06-18.11:29:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434626960.26.0.34315463221.issue24463@psf.upfronthosting.co.za>
In-reply-to
Content
Not a bug. The two elements of w are references to the same list:

>>> w = [[0] * 2] * 2
>>> w
[[0, 0], [0, 0]]
>>> [id(elt) for elt in w]
[21743952, 21743952]
History
Date User Action Args
2015-06-18 11:29:20skip.montanarosetrecipients: + skip.montanaro, ronaldoussoren, ned.deily, vasya yugov
2015-06-18 11:29:20skip.montanarosetmessageid: <1434626960.26.0.34315463221.issue24463@psf.upfronthosting.co.za>
2015-06-18 11:29:20skip.montanarolinkissue24463 messages
2015-06-18 11:29:20skip.montanarocreate