[docs] bug

ali mostafavi a.hr.mostafavi at gmail.com
Fri Jan 25 10:48:57 CET 2013


hi!
i found a bug in python 2.7.3
if we make a list like this:
a = [[0]*3]*3
then change the a[y][x] like this:
a[1][1] = 1
the whole column changes. the result would be:
[[0,1,0],[0,1,0],[0,1,0]]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20130125/b5e6b7d4/attachment.html>


More information about the docs mailing list