]> granicus.if.org Git - python/commit
bpo-37076: _thread.start_new_thread() calls _PyErr_WriteUnraisableMsg() (GH-13617)
authorVictor Stinner <vstinner@redhat.com>
Wed, 29 May 2019 00:57:56 +0000 (02:57 +0200)
committerGitHub <noreply@github.com>
Wed, 29 May 2019 00:57:56 +0000 (02:57 +0200)
commit8b09500345d998f3ff1e363a5210bc87f42ff306
tree3f03ee8d5f60fece00d48ae305253328413ae9d0
parentb76302ddd0896cb39ce69909349b53db6e7776e2
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.
Doc/library/_thread.rst
Lib/test/test_thread.py
Misc/NEWS.d/next/Library/2019-05-28-12-17-10.bpo-37076.Bk2xOs.rst [new file with mode: 0644]
Modules/_threadmodule.c