Re: List Order of Initialization

2008-10-10 Thread Ben Finney
SamFeltus <[EMAIL PROTECTED]> writes: > When a list initializes, will it always evaluate in order starting at > element 0 and finishing with the last element? > > def f1(x): > return x + 2 > > def f2(x): > return x * 2 > > def f3(x): > return x * 3 > > the_list = [f1(7), f2(8), f3(

Re: List Order of Initialization

2008-10-10 Thread Terry Reedy
Diez B. Roggisch wrote: SamFeltus schrieb: When a list initializes, will it always evaluate in order starting at element 0 and finishing with the last element? def f1(x): return x + 2 def f2(x): return x * 2 def f3(x): return x * 3 the_list = [f1(7), f2(8), f3(4)] Yes. From t

Re: List Order of Initialization

2008-10-10 Thread Diez B. Roggisch
SamFeltus schrieb: When a list initializes, will it always evaluate in order starting at element 0 and finishing with the last element? def f1(x): return x + 2 def f2(x): return x * 2 def f3(x): return x * 3 the_list = [f1(7), f2(8), f3(4)] Yes. Diez -- http://mail.python.org/m

List Order of Initialization

2008-10-10 Thread SamFeltus
When a list initializes, will it always evaluate in order starting at element 0 and finishing with the last element? def f1(x): return x + 2 def f2(x): return x * 2 def f3(x): return x * 3 the_list = [f1(7), f2(8), f3(4)] -- http://mail.python.org/mailman/listinfo/python-list