GeezerVison is showing github.com — gh-113317: Argument Clinic: Add libclinic.function by vstinner · Pull Request #116807 · python/cpython
Conversation
vstinner
commented
Mar 14, 2024
•
edited by erlend-aasland
Loading
Uh oh!
There was an error while loading. Please reload this page.
- Move Module, Class, and Function
and Parameter classes to a new libclinic.function module.
- Move VersionTuple and Sentinels to libclinic.utils.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Move Module, Class, Function and Parameter classes to a new
libclinic.function module.
Move VersionTuple and Sentinels to libclinic.utils.
erlend-aasland
changed the title
gh-113317, AC: Add libclinic.parameter
gh-113317: Argument Clinic: Add libclinic.function
Mar 19, 2024
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?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
No, you're right; I misread it in-between all the changes. Sorry!
|
vstinner reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Reviewers
erlend-aasland
Awaiting requested review from erlend-aasland
erlend-aasland is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|