-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
gh-134170: Add colorization to unraisable exceptions #134183
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e8ea2a3
Add colorization to unraisable exceptions.
ZeroIntensity 36e38e6
Add blurb.
ZeroIntensity 6c9d619
Add whatsnew.
ZeroIntensity d2e621a
Clear exceptions upon failure.
ZeroIntensity 411406c
Remove stray newline change.
ZeroIntensity 4e9a0b6
Fix signal tests.
ZeroIntensity 19db581
Fix cmdline tests.
ZeroIntensity 6e57c96
Fix sys tests.
ZeroIntensity 06d43dd
Oops I lied.
ZeroIntensity ca0efb4
Fix atexit tests.
ZeroIntensity bcfd811
Skip unneeded @force_not_colorized
ZeroIntensity b329019
Fix C API tests.
ZeroIntensity 8a325d3
Fix remaining tests.
ZeroIntensity 2360427
Fix remaining tests.
ZeroIntensity 9a1d88e
Apply suggestions from code review
ZeroIntensity a8cf99a
Pass the file instead of looking up sys.stderr again.
ZeroIntensity b32084c
Change stupid test case.
ZeroIntensity 79fb9d2
Please let this fix the stupid test. It doesn't repro locally for som…
ZeroIntensity 4c339f3
Add a comment to make Benedikt happy.
ZeroIntensity 2793964
Fix the comment about the file parameter.
ZeroIntensity e96740b
Merge branch 'main' into unraisable-color
ZeroIntensity 63892dc
Fix potential double-decref.
ZeroIntensity 0547bf0
Apply suggestions from code review
ZeroIntensity 0822b6c
Avoid checking dangling pointer against NULL.
ZeroIntensity 7f36267
Make NEWS entry clearer.
ZeroIntensity 91e1048
Update the documentation for sys.unraisablehook().
ZeroIntensity ee2edd5
Merge branch 'unraisable-color' of https://github.com/zerointensity/c…
ZeroIntensity 7deb130
Apply suggestions from code review
ZeroIntensity f2c8dd7
Update Python/errors.c
ZeroIntensity 4c3a6e7
Update Lib/traceback.py
ZeroIntensity 53fb7a8
Newline for readability.
ZeroIntensity 37d87a0
Merge branch 'main' of https://github.com/python/cpython into unraisa…
ZeroIntensity File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Core_and_Builtins/2025-05-18-10-50-46.gh-issue-134170.J0Hvmi.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add colorization to :func:`sys.unraisablehook` by default. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.