diff options
author | Mario Corchero <mcorcherojim@bloomberg.net> | 2020-11-12 17:27:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 17:27:44 (GMT) |
commit | 750c5abf43b7b1627ab59ead237bef4c2314d29e (patch) | |
tree | f8ebda9718f8e2b5c7a564a7aaae0e4170639360 /Doc/library/threading.rst | |
parent | b5cc05bbe681dbe06d5ec6d34318815d1c1ad6c5 (diff) | |
download | cpython-750c5abf43b7b1627ab59ead237bef4c2314d29e.zip cpython-750c5abf43b7b1627ab59ead237bef4c2314d29e.tar.gz cpython-750c5abf43b7b1627ab59ead237bef4c2314d29e.tar.bz2 |
bpo-42308: Add threading.__excepthook__ (GH-23218)
Add threading.__excepthook__ to allow retrieving the original value
of threading.excepthook in case it is set to a broken or a different
value.
Diffstat (limited to 'Doc/library/threading.rst')
-rw-r--r-- | Doc/library/threading.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index e05486f..6907354 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -71,6 +71,13 @@ This module defines the following functions: .. versionadded:: 3.8 +.. data:: __excepthook__ + + Holds the original value of :func:`threading.excepthook`. It is saved so that the + original value can be restored in case they happen to get replaced with + broken or alternative objects. + + .. versionadded:: 3.10 .. function:: get_ident() |