[issue32012] Disallow ambiguous syntax f(x for x in [1],)

Serhiy Storchaka report at bugs.python.org
Tue Nov 14 08:59:52 EST 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Stefan, `[1,2,3]` is an expression, but `x for x in [1,2,3]` is not. If you want to change the Python language specification, please open a topic on Python-Dev and provide the rationale.

----------

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


More information about the Python-bugs-list mailing list