diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-05-22 23:00:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-22 23:00:58 (GMT) |
commit | df22c03b93ea4620fdf4a0b3cbbbfa7c645af783 (patch) | |
tree | 87a86340ef143d19350e9f52b18d4f28f0a982b7 /Include | |
parent | 5edcf263581c70f6a6c2206db679e51e9418bb38 (diff) | |
download | cpython-df22c03b93ea4620fdf4a0b3cbbbfa7c645af783.zip cpython-df22c03b93ea4620fdf4a0b3cbbbfa7c645af783.tar.gz cpython-df22c03b93ea4620fdf4a0b3cbbbfa7c645af783.tar.bz2 |
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.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_traceback.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_traceback.h b/Include/internal/pycore_traceback.h index a96199b..bf4d7fe 100644 --- a/Include/internal/pycore_traceback.h +++ b/Include/internal/pycore_traceback.h @@ -86,6 +86,10 @@ PyAPI_FUNC(void) _Py_DumpHexadecimal( unsigned long value, Py_ssize_t width); +PyAPI_FUNC(PyObject*) _PyTraceBack_FromFrame( + PyObject *tb_next, + struct _frame *frame); + #ifdef __cplusplus } #endif |