En Fri, 09 Mar 2007 22:30:09 -0300, kghose <[EMAIL PROTECTED]>  
escribió:

> The following code
>
> listoflists = [[]]*2
> listoflists[0].append(1)
>
> appends(1) to both listoflists[0] and listoflists[1] (which I did not
> expect)

See latest posts on this list, or read the FAQ.

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to