[issue6948] list

2009-09-19 Thread Mark Dickinson
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:

[issue6948] list

2009-09-19 Thread kewlar
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