<br><br><div class="gmail_quote">On Sat, Nov 14, 2009 at 2:50 AM, Vlastimil Brom <span dir="ltr"><<a href="mailto:vlastimil.brom@gmail.com">vlastimil.brom@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

2009/11/14 Brian J Mingus <<a href="mailto:Brian.Mingus@colorado.edu">Brian.Mingus@colorado.edu</a>>:<br>
<div><div></div><div class="h5">><br>
><br>
> On Sat, Nov 14, 2009 at 1:50 AM, Paul Rubin <<a href="http://phr.cx" target="_blank">http://phr.cx</a>@nospam.invalid><br>
> wrote:<br>
>><br>
>> kj <no.email@please.post> writes:<br>
>> >   lol = [None] * 500<br>
>> >   for i in xrange(len(lol)):<br>
>> >       lol[i] = []<br>
>><br>
>> lol = map(list, [()] * 500)<br>
><br>
> Could someone explain what the deal is with this thread? Thanks.<br>
> [[]]*500<br>
><br>
<br>
</div></div>Try<br>
>>> lst=[[]]*500<br>
>>> lst[7].append(2)<br>
>>> lst<br>
to see...<br>
<br>
vbr<br>
<div><div></div><div class="h5">--<br></div></div></blockquote><div><br></div><div>I see.. Here's what I came up with: list(eval('[],'*500)) </div></div><br>