]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91210: Improve error message when non-default param follows default (GH-95933)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Sat, 17 Sep 2022 17:09:28 +0000 (19:09 +0200)
committerGitHub <noreply@github.com>
Sat, 17 Sep 2022 17:09:28 +0000 (10:09 -0700)
commit7e36abbb7815b14777c207dba0fe6fcd41d6d37a
tree4329d4d070261c451d9e9ccbd4d3a8833522c6c8
parent78359b1d45608439f8e03b8e86174fe7b04d3e08
gh-91210: Improve error message when non-default param follows default (GH-95933)

- Improve error message when parameter without a default follows one with a default
- Show same error message when positional-only params precede the default/non-default sequence
Grammar/python.gram
Lib/test/test_positional_only_arg.py
Lib/test/test_syntax.py
Misc/NEWS.d/next/Core and Builtins/2022-08-12-18-13-49.gh-issue-91210.AWMSLj.rst [new file with mode: 0644]
Parser/parser.c