]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113317: Clean up Argument Clinic global namespace (#113414)
authorErlend E. Aasland <erlend@python.org>
Sat, 23 Dec 2023 00:37:39 +0000 (01:37 +0100)
committerGitHub <noreply@github.com>
Sat, 23 Dec 2023 00:37:39 +0000 (00:37 +0000)
commitc3f92f6a7513340dfe2d82bfcd38eb77453e935d
tree29a5fb460cf3e7ab7ec39865eb2ac93a474f3bd7
parent9c3ddf31a34295ebcef6dc49b9e0ddd75d0ea9f1
gh-113317: Clean up Argument Clinic global namespace (#113414)

Split up clinic.py by establishing libclinic as a support package for
Argument Clinic. Get rid of clinic.py globals by either making them
class members, or by putting them into libclinic.

- Move INCLUDE_COMMENT_COLUMN to BlockPrinter
- Move NO_VARARG to CLanguage
- Move formatting helpers to libclinic
- Move some constants to libclinic (and annotate them as Final)
Lib/test/test_clinic.py
Tools/clinic/clinic.py
Tools/clinic/libclinic/__init__.py [new file with mode: 0644]
Tools/clinic/libclinic/formatting.py [new file with mode: 0644]