The ol' [[]] * 500 bug...
Brian J Mingus
Brian.Mingus at Colorado.EDU
Sat Nov 14 04:26:52 EST 2009
On Sat, Nov 14, 2009 at 1:50 AM, Paul Rubin <http://phr.cx@nospam.invalid>wrote:
> kj <no.email at please.post> writes:
> > lol = [None] * 500
> > for i in xrange(len(lol)):
> > lol[i] = []
>
> lol = map(list, [()] * 500)
Could someone explain what the deal is with this thread? Thanks.
[[]]*500
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091114/129a5e4d/attachment-0001.html>
More information about the Python-list
mailing list