Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented May 22, 2019

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

vstinner added 3 commits May 22, 2019 23:02
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 merged commit df22c03 into python:master May 22, 2019
@vstinner vstinner deleted the unraisablehook_traceback branch May 22, 2019 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants