diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2022-09-17 17:09:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-17 17:09:28 (GMT) |
commit | 7e36abbb7815b14777c207dba0fe6fcd41d6d37a (patch) | |
tree | 4329d4d070261c451d9e9ccbd4d3a8833522c6c8 /Misc | |
parent | 78359b1d45608439f8e03b8e86174fe7b04d3e08 (diff) | |
download | cpython-7e36abbb7815b14777c207dba0fe6fcd41d6d37a.zip cpython-7e36abbb7815b14777c207dba0fe6fcd41d6d37a.tar.gz cpython-7e36abbb7815b14777c207dba0fe6fcd41d6d37a.tar.bz2 |
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
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-08-12-18-13-49.gh-issue-91210.AWMSLj.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-08-12-18-13-49.gh-issue-91210.AWMSLj.rst b/Misc/NEWS.d/next/Core and Builtins/2022-08-12-18-13-49.gh-issue-91210.AWMSLj.rst new file mode 100644 index 0000000..f17d6ce --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-08-12-18-13-49.gh-issue-91210.AWMSLj.rst @@ -0,0 +1 @@ +Improve error message when a parameter without a default value follows one with a default value, and show the same message, even when the non-default/default sequence is preceded by positional-only parameters. |