On Sat, Nov 14, 2009 at 2:50 AM, Vlastimil Brom <[email protected]>wrote:
> 2009/11/14 Brian J Mingus <[email protected]>: > > > > > > On Sat, Nov 14, 2009 at 1:50 AM, Paul Rubin <http://phr.cx > @nospam.invalid> > > wrote: > >> > >> kj <[email protected]> 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
