[New-bugs-announce] [issue6948] list

kewlar report at bugs.python.org
Sat Sep 19 16:59:00 CEST 2009


New submission from kewlar <bolshenog at bk.ru>:

>>> 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: 92869
nosy: nutregina
severity: normal
status: open
title: list
type: performance
versions: Python 2.6, Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6948>
_______________________________________


More information about the New-bugs-announce mailing list