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 vasya yugov
Recipients ned.deily, ronaldoussoren, vasya yugov
Date 2015-06-18.11:01:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434625273.11.0.800818633314.issue24463@psf.upfronthosting.co.za>
In-reply-to
Content
This code:

w = [[0] * 2] * 2
w[1][1] = 1
print(w)

prints
[[0, 1], [0, 1]]
Is it a bug?
History
Date User Action Args
2015-06-18 11:01:13vasya yugovsetrecipients: + vasya yugov, ronaldoussoren, ned.deily
2015-06-18 11:01:13vasya yugovsetmessageid: <1434625273.11.0.800818633314.issue24463@psf.upfronthosting.co.za>
2015-06-18 11:01:12vasya yugovlinkissue24463 messages
2015-06-18 11:01:12vasya yugovcreate