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: Clean up Argument Clinic global namespace #113414

Merged
merged 10 commits into from
Dec 23, 2023

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Dec 22, 2023

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)

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)
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one question, and two nits; otherwise, this looks great!

Lib/test/test_clinic.py Show resolved Hide resolved
Tools/clinic/libclinic/__init__.py Outdated Show resolved Hide resolved
Tools/clinic/libclinic/formatting.py Outdated Show resolved Hide resolved
@erlend-aasland erlend-aasland enabled auto-merge (squash) December 23, 2023 00:20
@erlend-aasland
Copy link
Contributor Author

Thanks for the review! I have some more in the pipeline; I might create a follow-up PR tomorrow.

@erlend-aasland erlend-aasland merged commit c3f92f6 into python:main Dec 23, 2023
33 checks passed
@erlend-aasland erlend-aasland deleted the clinic/globals branch December 23, 2023 00:37
ryan-duve pushed a commit to ryan-duve/cpython that referenced this pull request Dec 26, 2023
…3414)

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)
kulikjak pushed a commit to kulikjak/cpython that referenced this pull request Jan 22, 2024
…3414)

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)
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…3414)

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)
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…3414)

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

2 participants