Re:JavaScript Needs Blocks
by oinksoft on Tuesday January 10, 2012 @01:30PM
(#3448234)
Python has full-featured closures (they must be named functions). But like you said, lambda is the neutered, anonymous version of these.
[ Parent
| on HN ]
Python 3 has full featured closures. In Python 2 it is not possible to alter what a variable references. It's still possible to alter the contents of the object being referenced leading to the "put the value in a list" type of hackery to simulate full featured closures.