[issue24677] "def f(*args, ): pass" does not compile

Martin Panter report at bugs.python.org
Tue Jul 21 14:53:37 CEST 2015


Martin Panter added the comment:

See existing Issue 9232. I agree with your use case, but apparently this is controversial.

Playing the devil’s advocate here, the function calls involving *unpacking and a trailing comma only became valid in 3.5. I think this was a side effect of the new f(*args, *more) syntax, though I don’t know if it was intentional. It was not mentioned in PEP 448 that I can see.

----------
nosy: +vadmium
resolution:  -> duplicate
status: open -> closed
superseder:  -> Allow trailing comma in any function argument list.
versions: +Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24677>
_______________________________________


More information about the Python-bugs-list mailing list