]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107704: Argument Clinic: add support for deprecating keyword use of parameters...
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 19 Aug 2023 07:13:35 +0000 (10:13 +0300)
committerGitHub <noreply@github.com>
Sat, 19 Aug 2023 07:13:35 +0000 (10:13 +0300)
commit2f311437cd51afaa68fd671bb99ff515cf7b029a
tree83d260dd293a6ef9144e3c680264a4a58312a600
parenteb953d6e4484339067837020f77eecac61f8d4f8
gh-107704: Argument Clinic: add support for deprecating keyword use of parameters (GH-107984)

It is now possible to deprecate passing keyword arguments for
keyword-or-positional parameters with Argument Clinic, using the new
'/ [from X.Y]' syntax.
(To be read as "positional-only from Python version X.Y")

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/howto/clinic.rst
Lib/test/test_clinic.py
Misc/NEWS.d/next/Tools-Demos/2023-08-15-19-50-49.gh-issue-107704.Uu84vd.rst [new file with mode: 0644]
Modules/_sqlite/clinic/connection.c.h
Modules/_testclinic.c
Modules/clinic/_testclinic_depr.c.h [new file with mode: 0644]
Modules/clinic/_testclinic_depr_star.c.h [deleted file]
Tools/c-analyzer/cpython/globals-to-fix.tsv
Tools/clinic/clinic.py