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: Argument Clinic: Add libclinic.function #116807

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 14, 2024

  • Move Module, Class, and Function and Parameter classes to a new libclinic.function module.
  • Move VersionTuple and Sentinels to libclinic.utils.

Move Module, Class, Function and Parameter classes to a new
libclinic.function module.

Move VersionTuple and Sentinels to libclinic.utils.
@vstinner vstinner enabled auto-merge (squash) March 14, 2024 14:02
@vstinner vstinner merged commit b1236a4 into python:main Mar 14, 2024
37 checks passed
@vstinner vstinner deleted the clinic_parameter branch March 14, 2024 14:37
@erlend-aasland erlend-aasland changed the title gh-113317, AC: Add libclinic.parameter gh-113317: Argument Clinic: Add libclinic.function Mar 19, 2024
@erlend-aasland
Copy link
Contributor

Move Module, Class, Function and Parameter classes to a new libclinic.function module.

This naming does not make sense to me. Why would class, module and parameter live in a file called function.py?

@vstinner
Copy link
Member Author

This naming does not make sense to me. Why would class, module and parameter live in a file called function.py?

Do you want to propose a different name? Or have one class per file?

@erlend-aasland
Copy link
Contributor

Do you want to propose a different name? Or have one class per file?

With one class per file you at least don't need to git grep in order to find out where things live; if the file is named after the class, it would be obvious where it was defined. Perhaps that is too granular, though.

@erlend-aasland
Copy link
Contributor

The commit message says:

Move Module, Class, Function and Parameter classes to a new libclinic.function module.

But this is not true; Parameter was not moved; it was left out of the PR.

@vstinner
Copy link
Member Author

But this is not true; Parameter was not moved; it was left out of the PR.

Parameter was moved to libclinic.function in the merged commit, no? Search for class Parameter: in b1236a4. Well, I can be wrong.

@erlend-aasland
Copy link
Contributor

No, you're right; I misread it in-between all the changes. Sorry!

vstinner added a commit to vstinner/cpython that referenced this pull request Mar 20, 2024
Move Module, Class, Function and Parameter classes to a new
libclinic.function module.

Move VersionTuple and Sentinels to libclinic.utils.
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
Move Module, Class, Function and Parameter classes to a new
libclinic.function module.

Move VersionTuple and Sentinels to libclinic.utils.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Move Module, Class, Function and Parameter classes to a new
libclinic.function module.

Move VersionTuple and Sentinels to libclinic.utils.
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