This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients Tomáš.Dvořák, docs@python, ezio.melotti, r.david.murray
Date 2011-10-03.15:22:43
SpamBayes Score 0.0020630981
Marked as misclassified No
Message-id <1317655364.34.0.784602471719.issue13094@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-10-03 15:22:44ezio.melottisetrecipients: + ezio.melotti, r.david.murray, docs@python, Tomáš.Dvořák
2011-10-03 15:22:44ezio.melottisetmessageid: <1317655364.34.0.784602471719.issue13094@psf.upfronthosting.co.za>
2011-10-03 15:22:43ezio.melottilinkissue13094 messages
2011-10-03 15:22:43ezio.melotticreate