[issue24589] Wrong behavior for list of lists

Zorceta report at bugs.python.org
Wed Jul 8 10:51:38 CEST 2015


Zorceta added the comment:

FYI:

>>> ll = [[]]*10
>>> [id(l) for l in ll]
[67940296, 67940296, 67940296, 67940296, 67940296, 67940296, 67940296, 67940296, 67940296, 67940296]

----------
nosy: +zorceta

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


More information about the Python-bugs-list mailing list