[issue41848] PEG parser doesn't allow lambda in for_if_clause

Terry J. Reedy report at bugs.python.org
Fri Sep 25 19:20:56 EDT 2020


Terry J. Reedy <tjreedy at udel.edu> added the comment:

After adding parens,
>>> [x for x in [] if (lambda: x)]
[]

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41848>
_______________________________________


More information about the Python-bugs-list mailing list