Changing a Value in List of lists

Terry Reedy tjreedy at udel.edu
Sun Sep 2 14:07:47 EDT 2012


On 9/2/2012 7:17 AM, Mark Lawrence wrote:
> On 02/09/2012 12:05, Rishabh Dixit wrote:
>> Hi,
>>
>> I got it :). We should create a new list every time before adding to a
>> list
>> of list so that instead repeating the reference a new reference generated
>> every time.
>>
>
> Please don't top post on this list as it often destroys the context,
> thanks.

In this particular case, OP could and should have trimmed off everything 
other than the top post, as it stands alone. Then it would not have been 
a top post ;-).

-- 
Terry Jan Reedy




More information about the Python-list mailing list