]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40334: Spacialized error message for invalid args after bare '*' (GH-19865)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Mon, 4 May 2020 10:58:31 +0000 (13:58 +0300)
committerGitHub <noreply@github.com>
Mon, 4 May 2020 10:58:31 +0000 (11:58 +0100)
commite10e7c771bf06112c4a311e0ef6b8af6423b0cca
tree79a34dfffd7b555dcab60db13ad4ab678d4b9068
parentc3f001461d5794c81cf5f70e08ae5435fe935ceb
bpo-40334: Spacialized error message for invalid args after bare '*' (GH-19865)

When parsing things like `def f(*): pass` the old parser used to output `SyntaxError: named arguments must follow bare *`, which the new parser wasn't able to do.
Grammar/python.gram
Lib/test/test_exceptions.py
Lib/test/test_peg_parser.py
Lib/test/test_syntax.py
Parser/pegen/parse.c