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

Stefan Krah report at bugs.python.org
Tue Nov 14 08:03:05 EST 2017


Stefan Krah <stefan at bytereef.org> added the comment:

I think "ambiguous" is not the right word. If a single argument
can be a non-parenthesized generator and all arguments can be
followed by a trailing comma, it's clear.

The language spec is often behind in my experience.

----------
nosy: +skrah

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


More information about the Python-bugs-list mailing list