[issue12597] List created by multiplication behaves different
R. David Murray
report at bugs.python.org
Wed Jul 20 20:15:23 CEST 2011
R. David Murray <rdmurray at bitdance.com> added the comment:
I'm not sure what your example is trying to achieve, but the list(tuple(...)) looks redundant.
Your initial example could be written:
b = [[0] for i in range(3)]
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12597>
_______________________________________
More information about the Python-bugs-list
mailing list