Lambda in python has always confused me. Why is it not the case that in
def foo(low, high):
return lambda x: low <= x < high
low and high are not bound at the creation of the lambda? And another
thing: is it because of parsing problems that lambda is restricted to
a single expresion? In any case, because it is restricted, and
assignment is not something that can happen in an expression, the effect
of lisp-ish lambdas can be obtained by binding variables from the
local dictionary at the time the lambda is created.
r~
--------
richard@viz.tamu.edu