[issue13094] Need Programming FAQ entry for the behavior of closures
Oct. 3, 2011
3:22 p.m.
Ezio Melotti <ezio.melotti@gmail.com> added the comment: Maybe with a different name is less confusing: lambda return_value=each: return_value This copies the value of 'each' in a variable called 'return_value' that is local to the lambda. Since the copy happens when the lambdas are defined, 'return_value' has then the right value. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13094> _______________________________________
5482
Age (days ago)
5482
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ezio Melotti