Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-113317: Finish splitting Argument Clinic into sub-files #117513

Merged
merged 1 commit into from Apr 4, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Apr 3, 2024

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()

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()
@vstinner
Copy link
Member Author

vstinner commented Apr 3, 2024

See also #115542

@vstinner vstinner merged commit dc54714 into python:main Apr 4, 2024
42 checks passed
@vstinner vstinner deleted the ac_split branch April 4, 2024 09:09
@vstinner
Copy link
Member Author

vstinner commented Apr 4, 2024

Merged, thanks for the review @erlend-aasland.

diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…hon#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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Argument Clinic: split out global stateless helpers and constants from clinic.py
2 participants