mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
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.
This commit is contained in:
parent
b5cc05bbe6
commit
750c5abf43
5 changed files with 40 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -263,6 +263,11 @@ retrieve the functions set by :func:`threading.settrace` and
|
|||
:func:`threading.setprofile` respectively.
|
||||
(Contributed by Mario Corchero in :issue:`42251`.)
|
||||
|
||||
Add :data:`threading.__excepthook__` to allow retrieving the original value
|
||||
of :func:`threading.excepthook` in case it is set to a broken or a different
|
||||
value.
|
||||
(Contributed by Mario Corchero in :issue:`42308`.)
|
||||
|
||||
traceback
|
||||
---------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue