Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28265

Re: Changing a Value in List of lists

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Changing a Value in List of lists
Date 2012-09-02 12:17 +0100
References <CANFKW=GubXQ8Q7Zr+6dZVp451xi381VhGQHaUZpb1YA9cDs7zA@mail.gmail.com> <CANFKW=GeuGH68JUjVpRDTwdvcZb1YRYyc-V0APvS5pZPgwgnRg@mail.gmail.com> <CANFKW=ECCw1xARP0QS0MnKPPWc600EBkQ7GyLnT6J2PNd-HvdQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.82.1346584490.27098.python-list@python.org> (permalink)

Show all headers | View raw


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.

-- 
Cheers.

Mark Lawrence.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Changing a Value in List of lists Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-02 12:17 +0100

csiph-web