-
Notifications
You must be signed in to change notification settings - Fork 0
PoC: Use logging for warnings #36
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
base: main
Are you sure you want to change the base?
PoC: Use logging for warnings #36
Conversation
Could be a nice yak-shave for #35 |
Another nice side effect is that post this, we could easily sprinkle Argument Clinic with debug and info log messages; it could significantly help improve the Argument Clinic debug experience. |
What do you think, should we upstream this, @AlexWaygood? After this, it should be trivial to get rid of the global clinic object in the remaining |
Can you explain how this change make it easier to remove the global |
|
But how do you avoid access |
We never had line numbers for |
FYI I wrote python#114752 to remove the usage global variable |
Another experiment: tear out the custom warning functionality, and instead use
logging.warning
.Pro: simplified error handling code
Con: no line numbers for warnings1
Footnotes
well, there were never usable line numbers for warnings anyway ↩