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

kj no.email at please.post
Fri Nov 13 18:05:57 EST 2009


In <6e20a31b-2218-49c5-a32c-5f0147db3172 at k19g2000yqc.googlegroups.com> Jon Clements <joncle at googlemail.com> writes:

>>>> lol =3D map(lambda L: [], xrange(5))
>>>> [id(i) for i in lol]
>[167614956, 167605004, 167738060, 167737996, 167613036]

Oh yeah, map!  I'd forgotten all about it.  Thanks!

kynn



More information about the Python-list mailing list