[issue9232] Allow trailing comma in any function argument list.

Mark Dickinson report at bugs.python.org
Thu Jul 22 19:13:51 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

There was one place that needed to be changed in ast.c:  namely, the check to make sure that there are keyword-only arguments following a bare star.

Here's a new patch, that fixes that issue, updates the grammar in the ast.c comment to match that in Grammar/Grammar, and also updates the production list given in the docs for function definitions.

----------
Added file: http://bugs.python.org/file18127/trailing_commas2.patch

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


More information about the Python-bugs-list mailing list