Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented May 22, 2019

PyErr_WriteUnraisable() now displays the exception even if displaying
the traceback failed. Moreover, hold a reference to sys.stderr while
using it.

Document that an exception must be set when calling
PyErr_WriteUnraisable(), but don't add an assertion to check it at
runtime.

Cleanup: use longer names for variables and create
write_unraisable_exc_file() subfunction.

https://bugs.python.org/issue36829

PyErr_WriteUnraisable() now displays the exception even if displaying
the traceback failed. Moreover, hold a strong reference to sys.stderr
while using it.

Document that an exception must be set when calling
PyErr_WriteUnraisable(), but don't add an assertion to check it at
runtime.

Cleanup: use longer names for variables and create
write_unraisable_exc_file() subfunction.
@vstinner vstinner merged commit a58db96 into python:3.7 May 22, 2019
@vstinner vstinner deleted the unraisable37 branch May 22, 2019 16:23
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