]> granicus.if.org Git - python/commit
bpo-36829: PyErr_WriteUnraisable() normalizes exception (GH-13507)
authorVictor Stinner <vstinner@redhat.com>
Wed, 22 May 2019 23:00:58 +0000 (01:00 +0200)
committerGitHub <noreply@github.com>
Wed, 22 May 2019 23:00:58 +0000 (01:00 +0200)
commitdf22c03b93ea4620fdf4a0b3cbbbfa7c645af783
tree87a86340ef143d19350e9f52b18d4f28f0a982b7
parent5edcf263581c70f6a6c2206db679e51e9418bb38
bpo-36829: PyErr_WriteUnraisable() normalizes exception (GH-13507)

PyErr_WriteUnraisable() now creates a traceback object if there is no
current traceback. Moreover, call PyErr_NormalizeException() and
PyException_SetTraceback() to normalize the exception value. Ignore
silently any error.
Include/internal/pycore_traceback.h
Lib/test/test_sys.py
Misc/NEWS.d/next/Core and Builtins/2019-05-22-23-01-29.bpo-36829.MfOcUg.rst [new file with mode: 0644]
Python/errors.c
Python/traceback.c