Re: Changing a Value in List of lists

Discussion in 'Python' started by Terry Reedy, Sep 2, 2012.

  1. Terry Reedy

    Terry Reedy Guest

    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
     
    Terry Reedy, Sep 2, 2012
    #1
    1. Advertising

  2. 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.
     
    Rishabh Dixit, Sep 3, 2012
    #2
    1. Advertising

  3. 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.
     
    Rishabh Dixit, Sep 3, 2012
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==

    List of lists of lists of lists...

    =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==, May 8, 2006, in forum: Python
    Replies:
    5
    Views:
    448
    =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==
    May 15, 2006
  2. yomgui

    list of lists of lists ....

    yomgui, Jul 28, 2006, in forum: Python
    Replies:
    6
    Views:
    330
    yomgui
    Jul 31, 2006
  3. Lynn
    Replies:
    5
    Views:
    155
    Anno Siegel
    Sep 12, 2005
  4. Chris Angelico

    Re: Changing a Value in List of lists

    Chris Angelico, Sep 2, 2012, in forum: Python
    Replies:
    0
    Views:
    234
    Chris Angelico
    Sep 2, 2012
  5. Mark Lawrence

    Re: Changing a Value in List of lists

    Mark Lawrence, Sep 2, 2012, in forum: Python
    Replies:
    0
    Views:
    239
    Mark Lawrence
    Sep 2, 2012
Loading...

Share This Page