[issue7917] list of list created by *
Andrew Chong
report at bugs.python.org
Fri Feb 12 15:55:43 CET 2010
Andrew Chong <sledge76 at hotmail.com> added the comment:
But this works fine.
>>> data = []
>>> data += [[]]
>>> data += [[]]
>>> data += [[]]
>>> data += [[]]
>>> print data
[[], [], [], []]
>>> data[0] += [(0,1)]
>>> print data
[[(0, 1)], [], [], []]
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7917>
_______________________________________
More information about the Python-bugs-list
mailing list