[issue13094] Need Programming FAQ entry for the behavior of closures
report at bugs.python.org
Mon Oct 3 17:13:33 CEST 2011
Tomáš Dvořák <dvtomas at gmail.com> added the comment:
Thank you all very much for the super-quick responses. I'm used to smalltalk, so the python variable binding behaviour is unnatural to me, but I guess there must have been some reasons for making it behave this way.
"lambda each=each: each"
trick works nicely, thanks a lot. But - what does it mean? :) I just don't know how to parse and understand it :-)
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list