Mark Dickinson added the comment:
This is not a bug in Python. For general Python questions, please ask on
comp.lang.python.
(If you weren't trying to report a bug in the first place, please could
you explain your purpose in opening this issue.)
--
nosy: +mark.dickinson
resolution:
New submission from kewlar :
>>> a = [[0,0,0],[0,0,0],[0,0,0]]
>>> a
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
>>> a[1][1] = 1
>>> a
[[0, 0, 0], [0, 1, 0], [0, 0, 0]]
>>> b = [[0]*3]*3
>>> b
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
>>> b[1][1] = 1
>>> b
[[0, 1, 0], [0, 1, 0], [0, 1, 0]]
>>>
--
messages