Why does this attempt at creating a list of curried functions not work?
def p(x, num): print x, num def test(): a = [] for i in range(10):
I asked a similar question, and got two answers. One basically the same as the accepted answer here, and the other which is less clear but slightly more succint.
Dynamically creating a menu in Tkinter. (lambda expressions?)