is this a bug or what?

I.J. shiver at yubc.net
Wed Dec 26 20:56:50 EST 2001


>>> M=[[0]*3]*3
>>> M
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
>>> M[1][1]=1
>>> M
[[0, 1, 0], [0, 1, 0], [0, 1, 0]]

Is this new age math?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20011227/52d45533/attachment.html>


More information about the Python-list mailing list