On Sat, Nov 14, 2009 at 2:50 AM, Vlastimil Brom <vlastimil.b...@gmail.com>wrote:
> 2009/11/14 Brian J Mingus <brian.min...@colorado.edu>: > > > > > > On Sat, Nov 14, 2009 at 1:50 AM, Paul Rubin <http://phr.cx > @nospam.invalid> > > wrote: > >> > >> kj <no.em...@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 > > > > Try > >>> lst=[[]]*500 > >>> lst[7].append(2) > >>> lst > to see... > > vbr > -- > I see.. Here's what I came up with: list(eval('[],'*500))
-- http://mail.python.org/mailman/listinfo/python-list