]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-114258: Refactor Argument Clinic function name parser (#114930)
authorErlend E. Aasland <erlend@python.org>
Thu, 15 Feb 2024 08:45:21 +0000 (09:45 +0100)
committerGitHub <noreply@github.com>
Thu, 15 Feb 2024 08:45:21 +0000 (09:45 +0100)
commit32f8ab1ab65c13ed70f047ffd780ec1fe303ff1e
tree4acb62c74cb93f415555f6a6c4eab69a3786a118
parentdc978f6ab62b68c66d3b354638c310ee1cc844a6
gh-114258: Refactor Argument Clinic function name parser (#114930)

Refactor state_modulename_name() of the parsing state machine, by
adding helpers for the sections that deal with ...:

1. parsing the function name
2. normalizing "function kind"
3. dealing with cloned functions
4. resolving return converters
5. adding the function to the DSL parser
Tools/clinic/clinic.py