Re: nested lists - utter newbie

2005-07-01 Thread Terry Hancock
On Friday 01 July 2005 05:37 am, Benjamin Niemann wrote: > [EMAIL PROTECTED] wrote: > > > Hi, > > why is this possible - > b = [1,2,3] > b[2] = b > b > > [1,2,[...]] > b[2] > > [1,2,[...]] > b[2][2][2][2][2] > > [1,2,[...]] > > > > but this is not - > x = [1,2,x] > > Trace

Re: nested lists - utter newbie

2005-07-01 Thread Benjamin Niemann
[EMAIL PROTECTED] wrote: > Hi, > why is this possible - b = [1,2,3] b[2] = b b > [1,2,[...]] b[2] > [1,2,[...]] b[2][2][2][2][2] > [1,2,[...]] > > but this is not - x = [1,2,x] > Traceback (most recent call last): > File "", line 1, in ? > NameError: name 'x' is not defi

nested lists - utter newbie

2005-07-01 Thread rahoool
Hi, why is this possible - >>>b = [1,2,3] >>>b[2] = b >>>b [1,2,[...]] >>>b[2] [1,2,[...]] >>>b[2][2][2][2][2] [1,2,[...]] but this is not - >>>x = [1,2,x] Traceback (most recent call last): File "", line 1, in ? NameError: name 'x' is not defined thanks r_a_h_o_o_l -- http://mail.python.org/