]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95065: Add Argument Clinic support for deprecating positional use of parameters...
authorErlend E. Aasland <erlend@python.org>
Mon, 7 Aug 2023 11:28:08 +0000 (13:28 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Aug 2023 11:28:08 +0000 (11:28 +0000)
commit33cb0b06efe33968eb32463fa1b02b5a729a17f8
tree03943530bbfb086afa1ba2965b544fa53335f1a3
parent3c8e8f3ceeae08fc43d885f5a4c65a3ee4b1a2c8
gh-95065: Add Argument Clinic support for deprecating positional use of parameters (#95151)

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

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/howto/clinic.rst
Lib/test/clinic.test.c
Lib/test/test_clinic.py
Misc/NEWS.d/next/Tools-Demos/2022-07-23-00-33-28.gh-issue-95065.NfCCpp.rst [new file with mode: 0644]
Tools/clinic/clinic.py