]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113317: Finish splitting Argument Clinic into sub-files (#117513)
authorVictor Stinner <vstinner@python.org>
Thu, 4 Apr 2024 09:09:40 +0000 (11:09 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Apr 2024 09:09:40 +0000 (11:09 +0200)
commitdc5471404489da53e6d591b52ba8886897ed3743
treeca0c9f0ed142a07d7c6bda24c8572bbf673e4778
parent85843348c5f0b8c2f973e8bc586475e69af19cd2
gh-113317: Finish splitting Argument Clinic into sub-files (#117513)

Add libclinic.parser module and move the following classes and
functions there:

* Parser
* PythonParser
* create_parser_namespace()

Add libclinic.dsl_parser module and move the following classes,
functions and variables there:

* ConverterArgs
* DSLParser
* FunctionNames
* IndentStack
* ParamState
* StateKeeper
* eval_ast_expr()
* unsupported_special_methods

Add libclinic.app module and move the Clinic class there.

Add libclinic.cli module and move the following functions there:

* create_cli()
* main()
* parse_file()
* run_clinic()
Lib/test/test_clinic.py
Tools/clinic/clinic.py
Tools/clinic/libclinic/app.py [new file with mode: 0644]
Tools/clinic/libclinic/clanguage.py
Tools/clinic/libclinic/cli.py [new file with mode: 0644]
Tools/clinic/libclinic/codegen.py
Tools/clinic/libclinic/dsl_parser.py [new file with mode: 0644]
Tools/clinic/libclinic/function.py
Tools/clinic/libclinic/language.py
Tools/clinic/libclinic/parser.py [new file with mode: 0644]