diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2022-11-20 23:15:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 23:15:05 (GMT) |
commit | 6d8da238ccdf946dc90e20821652d8caa25b76ba (patch) | |
tree | e19f5e842751c4070c775f3a5b929d3d05d2dfc3 /Misc | |
parent | e13d1d9dda8c27691180bc618bd5e9bf43dfa89f (diff) | |
download | cpython-6d8da238ccdf946dc90e20821652d8caa25b76ba.zip cpython-6d8da238ccdf946dc90e20821652d8caa25b76ba.tar.gz cpython-6d8da238ccdf946dc90e20821652d8caa25b76ba.tar.bz2 |
gh-90994: Improve error messages upon call arguments syntax errors (GH-96893)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-09-17-17-08-01.gh-issue-90994.f0H2Yd.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-09-17-17-08-01.gh-issue-90994.f0H2Yd.rst b/Misc/NEWS.d/next/Core and Builtins/2022-09-17-17-08-01.gh-issue-90994.f0H2Yd.rst new file mode 100644 index 0000000..5edc1ea --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-09-17-17-08-01.gh-issue-90994.f0H2Yd.rst @@ -0,0 +1,4 @@ +Improve error messages when there's a syntax error with call arguments. The following three cases are covered:
+- No value is assigned to a named argument, eg ``foo(a=)``.
+- A value is assigned to a star argument, eg ``foo(*args=[0])``.
+- A value is assigned to a double-star keyword argument, eg ``foo(**kwarg={'a': 0})``. |