
Feb. 19, 2007
11:17 p.m.
"Jan Kanis" <jan.kanis@phil.uu.nl> wrote: [snip]
lst = [] for i in range(10): lst.append(lambda i: i*i)
You must mean something like... lambda j: i*j
<mode=dreaming> I just hope if python were designed today it would have done these. </mode>
Probably not. Value binding breaks closures. - Josiah