Hacker News new | comments | show | ask | jobs | submit login

Python has full-featured closures (they must be named functions). But like you said, lambda is the neutered, anonymous version of these.

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.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact