Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.7] bpo-36829: Enhance PyErr_WriteUnraisable()#13487

Merged
vstinner merged 1 commit into
python:3.7python/cpython:3.7from
vstinner:unraisable37Copy head branch name to clipboard
May 22, 2019
Merged

[3.7] bpo-36829: Enhance PyErr_WriteUnraisable()#13487
vstinner merged 1 commit into
python:3.7python/cpython:3.7from
vstinner:unraisable37Copy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented May 22, 2019

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.