Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; 'lawrence': 0.09; 'terry': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; '23:40:32': 0.16; 'reedy': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'thanks.': 0.21; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'post': 0.28; 'context,': 0.29; 'case,': 0.29; 'subject:lists': 0.32; 'could': 0.32; 'stands': 0.33; 'subject:List': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'received:209.85': 0.35; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'instead': 0.39; ':).': 0.84; 'alone.': 0.91; 'subject:Value': 0.91 Newsgroups: comp.lang.python Date: Sun, 2 Sep 2012 22:05:02 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=115.249.18.25; posting-account=rBTifgoAAACNoy9ftT8D2KzRt4Sl_2yF References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 115.249.18.25 MIME-Version: 1.0 Subject: Re: Changing a Value in List of lists From: Rishabh Dixit To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346648711 news.xs4all.nl 6874 [2001:888:2000:d::a6]:49659 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28336 On Sunday, 2 September 2012 23:40:32 UTC+5:30, Terry Reedy wrote: > 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 Sorry for the inconvenience. I would not do it again.