◐ Shell
clean mode source ↗

bpo-36829: PyErr_WriteUnraisable() normalizes exception by vstinner · Pull Request #13507 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

vstinner

merged 3 commits into

May 22, 2019

Conversation

@vstinner

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.

https://bugs.python.org/issue36829

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
any error.
Replace runtime check with assertions. _PyTraceBack_FromFrame() is
used by PyTraceBack_Here() which is performance critical (called from
ceval.c).

@vstinner vstinner deleted the unraisablehook_traceback branch

May 22, 2019 23:01