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 Jesús Gómez
Recipients Antony.Lee, Jesús Gómez, georg.brandl, xdegaye
Date 2016-09-21.20:01:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474488114.51.0.715466216312.issue26072@psf.upfronthosting.co.za>
In-reply-to
Content
Confirming.

Another use case is the use any lambda, or function definition inside the scope of a function, for checking conditions in the REPL.

Suppose two inner functions named condition1 and condition2, and a parameter X as a Collection:

(Pdb) any(condition1(x) and condition2(x) for x in X)
*** NameError: name 'condition1' is not defined
History
Date User Action Args
2016-09-21 20:01:54Jesús Gómezsetrecipients: + Jesús Gómez, georg.brandl, xdegaye, Antony.Lee
2016-09-21 20:01:54Jesús Gómezsetmessageid: <1474488114.51.0.715466216312.issue26072@psf.upfronthosting.co.za>
2016-09-21 20:01:54Jesús Gómezlinkissue26072 messages
2016-09-21 20:01:54Jesús Gómezcreate