Re: I want this to work. [[]] * n

2011-06-14 Thread SherjilOzair
Thanks. This works. :) Regards, Sherjil Ozair -- http://mail.python.org/mailman/listinfo/python-list

Re: I want this to work. [[]] * n

2011-06-13 Thread Chris Angelico
On Tue, Jun 14, 2011 at 8:37 AM, SherjilOzair wrote: > I want a list which contains n lists, which are all different. I had > read a page which was about the mutability of lists, and how the * > operator on lists just does a shallow copy. But I can't find it now. > Does anyone know of that page ?

I want this to work. [[]] * n

2011-06-13 Thread SherjilOzair
I want a list which contains n lists, which are all different. I had read a page which was about the mutability of lists, and how the * operator on lists just does a shallow copy. But I can't find it now. Does anyone know of that page ? Either way, How to get a list of list, with all original list