-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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-113299: Create libclinic package #113309
Conversation
vstinner
commented
Dec 20, 2023
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Create Tools/clinic/libclinic/ package.
- Move cpp.py to libclinic.
- Create libclinic.utils.
- Issue: Refactor Argument Clinic support code into libclinic #113299
* Create Tools/clinic/libclinic/ package. * Move cpp.py to libclinic. * Create libclinic.utils.
@erlend-aasland @AlexWaygood @corona10: Ok, here is first minimum step to create a new package for Argument Clinic code. |
|
||
|
||
# Clinic instance | ||
clinic: 'Clinic' | None = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR feels like it only does my least favourite thing about your other PR :// #113299 (comment)
@@ -2681,6 +2613,7 @@ def __init__( | |||
|
|||
global clinic | |||
clinic = self | |||
utils.clinic = self |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, putting a global from one file into another file is not a good idea.
I don't have the bandwidth right now to move this global variable. Adding Apparently, it's a requirement for @AlexWaygood and @erlend-aasland so I prefer to close this PR for now. |