]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40334: Error message for invalid default args in function call (GH-19973)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Thu, 7 May 2020 10:44:06 +0000 (13:44 +0300)
committerGitHub <noreply@github.com>
Thu, 7 May 2020 10:44:06 +0000 (11:44 +0100)
commit4638c6429575bd6de26b12b2af5df74d6568b553
treedb027fceca158090caf8f194fc577d6631f82daa
parent2f37c355ab0e9ec9c1753985d27c41fa0bd719b9
bpo-40334: Error message for invalid default args in function call (GH-19973)

When parsing something like `f(g()=2)`, where the name of a default arg
is not a NAME, but an arbitrary expression, a specialised error message
is emitted.
Grammar/python.gram
Lib/test/test_exceptions.py
Lib/test/test_peg_parser.py
Parser/pegen/parse.c