The ol' [[]] * 500 bug...

Diez B. Roggisch deets at nospam.web.de
Sat Nov 14 03:40:42 EST 2009


kj schrieb:
> ...just bit me in the "fuzzy posterior".  The best I can come up with
> is the hideous
> 
>   lol = [[] for _ in xrange(500)]

If you call that hideous, I suggest you perform the same exercise in 
Java or C++ - and then come back to python and relax....


Diez



More information about the Python-list mailing list