Jesús Gómez added the comment:

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

----------
nosy: +Jesús Gómez

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26072>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to