Message277181
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 |
|
Date |
User |
Action |
Args |
2016-09-21 20:01:54 | Jesús Gómez | set | recipients:
+ Jesús Gómez, georg.brandl, xdegaye, Antony.Lee |
2016-09-21 20:01:54 | Jesús Gómez | set | messageid: <1474488114.51.0.715466216312.issue26072@psf.upfronthosting.co.za> |
2016-09-21 20:01:54 | Jesús Gómez | link | issue26072 messages |
2016-09-21 20:01:54 | Jesús Gómez | create | |
|