3 ms·
Python has full-featured closures (they must be named functions). But like you said, lambda is the neutered, anonymous version of these.
by oinksoft 15y ago
Python has full-featured closures (they must be named functions). But like you said, lambda is the neutered, anonymous version of these.
- hetman 15y agoPython 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.