is this a bug or what?

I.J. shiver at yubc.net
Thu Dec 27 02:56:50 CET 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