summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-29 00:57:56 (GMT)
committerGitHub <noreply@github.com>2019-05-29 00:57:56 (GMT)
commit8b09500345d998f3ff1e363a5210bc87f42ff306 (patch)
tree3f03ee8d5f60fece00d48ae305253328413ae9d0 /Misc
parentb76302ddd0896cb39ce69909349b53db6e7776e2 (diff)
downloadcpython-8b09500345d998f3ff1e363a5210bc87f42ff306.zip
cpython-8b09500345d998f3ff1e363a5210bc87f42ff306.tar.gz
cpython-8b09500345d998f3ff1e363a5210bc87f42ff306.tar.bz2
bpo-37076: _thread.start_new_thread() calls _PyErr_WriteUnraisableMsg() (GH-13617)
_thread.start_new_thread() now logs uncaught exception raised by the function using sys.unraisablehook(), rather than sys.excepthook(), so the hook gets access to the function which raised the exception.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-05-28-12-17-10.bpo-37076.Bk2xOs.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-05-28-12-17-10.bpo-37076.Bk2xOs.rst b/Misc/NEWS.d/next/Library/2019-05-28-12-17-10.bpo-37076.Bk2xOs.rst
new file mode 100644
index 0000000..2773675
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-05-28-12-17-10.bpo-37076.Bk2xOs.rst
@@ -0,0 +1,3 @@
+:func:`_thread.start_new_thread` now logs uncaught exception raised by the
+function using :func:`sys.unraisablehook`, rather than :func:`sys.excepthook`,
+so the hook gets access to the function which raised the exception.