Re: Simple object reference

2009-11-14 Thread Chris Rebert
On Sat, Nov 14, 2009 at 6:53 PM, Terry Reedy wrote: > Chris Rebert wrote: >> On Sat, Nov 14, 2009 at 3:25 PM, AON LAZIO wrote: >>> Hi, I have some problem with object reference >>> Say I have this code >>> >>> a = b = c = None >>> slist = [a,b,c] >> >> Values are stored in the list, not reference

Re: Simple object reference

2009-11-14 Thread Terry Reedy
Chris Rebert wrote: On Sat, Nov 14, 2009 at 3:25 PM, AON LAZIO wrote: Hi, I have some problem with object reference Say I have this code a = b = c = None slist = [a,b,c] Values are stored in the list, not references to names. That is not right either, or else newbies would not be surprised

Re: Simple object reference

2009-11-14 Thread Ben Finney
Chris Rebert writes: > On Sat, Nov 14, 2009 at 3:25 PM, AON LAZIO wrote: > > Hi, I have some problem with object reference > > Say I have this code > > > > a = b = c = None > > slist = [a,b,c] > > Values are stored in the list, not references to names. Modifying the > list does not change what v

Re: Simple object reference

2009-11-14 Thread Chris Rebert
On Sat, Nov 14, 2009 at 3:25 PM, AON LAZIO wrote: > Hi, I have some problem with object reference > Say I have this code > > a = b = c = None > slist = [a,b,c] Values are stored in the list, not references to names. Modifying the list does not change what values the names a, b, and c have. There