]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134170: Add colorization to unraisable exceptions (#134183)
authorPeter Bierma <zintensitydev@gmail.com>
Mon, 4 Aug 2025 14:35:00 +0000 (10:35 -0400)
committerGitHub <noreply@github.com>
Mon, 4 Aug 2025 14:35:00 +0000 (14:35 +0000)
commite8251dc0ae6a85f6a0e427ae64fb0fe847eb3cf8
tree4b84339ca33cacefe3a80b24a97f5cbaf62bcf9d
parent8943bb722f2f88a95ea6c5ee36bb5d540740d792
gh-134170: Add colorization to unraisable exceptions (#134183)

Default implementation of sys.unraisablehook() now uses traceback._print_exception_bltin() to print exceptions with colorized text.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Doc/library/sys.rst
Doc/whatsnew/3.15.rst
Lib/test/test_capi/test_exceptions.py
Lib/test/test_cmd_line.py
Lib/test/test_concurrent_futures/test_shutdown.py
Lib/test/test_signal.py
Lib/test/test_sys.py
Lib/test/test_threading.py
Lib/traceback.py
Misc/NEWS.d/next/Core_and_Builtins/2025-05-18-10-50-46.gh-issue-134170.J0Hvmi.rst [new file with mode: 0644]
Python/errors.c