Here's some information regarding closures in Python (the wiki page
goes into the limitation of lambda calc in python. Hope it helps.
Maybe the rest of you CSSA'ers will find it somewhat interesting.
In Python, functions are first-class objects that can be created and
passed around dynamically.
Python's limited support for anonymous functions is the lambda
construct. Since the availability of full anonymous functions is
non-existent then named functions is the primary use of functions in
Python. Lambdas are limited to containing expressions rather than
statements, although control flow can still be implemented less
elegantly within lambda by using short-circuiting.
Python has had support for lexical closures since version 2.2.
- Michael E. Karpeles
UVM ACM Chapter
CSSA Vice President