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

Serhiy Storchaka report at bugs.python.org
Tue Nov 14 08:55:40 EST 2017


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

I would prefer to fix all related cases in one issue, for having all examples in one place and having only one reference. All this cases are caused by the limitation of the parser used in CPython, and using different grammar rules. This If you want to change the language specification for decorator expression and class definition, it should be discussed before merging PR 4382, and I would make corresponding changes in it. In any case it is harder to fix issue32023 without fixing the original issue.

----------

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


More information about the Python-bugs-list mailing list