[docs] [issue13094] Need Programming FAQ entry for the behavior of closures
Tomáš Dvořák
report at bugs.python.org
Mon Oct 3 17:13:34 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.
Ezio, the
"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 :-)
Best regards,
Tomáš Dvořák
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13094>
_______________________________________
More information about the docs
mailing list