[issue13094] Need Programming FAQ entry for the behavior of closures

Oct. 3, 2011
3:13 p.m.
Tomáš Dvořák <dvtomas@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@bugs.python.org> <http://bugs.python.org/issue13094> _______________________________________
4914
Age (days ago)
4914
Last active (days ago)
0 comments
1 participants
participants (1)
-
Tomáš Dvořák