I have a list of lambda functions I want to evaluate in order. I\'m not sure why, but only the last function gets evaluated. Example below:
>>> de
try using partial, works for me:
from functools import partial def f(x,z): print "x=",x,", z=",z lst = [ partial(f,z=i) for i in range(5) ] for fn in lst: fn(3)
http://docs.python.org/library/functools.html#functools.partial