Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:3.7fromvstinner:unraisable37
May 22, 2019
Merged

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

vstinner merged 1 commit intopython:3.7fromvstinner:unraisable37
May 22, 2019

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedMay 22, 2019
edited by bedevere-bot
Loading

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 displayingthe traceback failed. Moreover, hold a strong reference to sys.stderrwhile using it.Document that an exception must be set when callingPyErr_WriteUnraisable(), but don't add an assertion to check it atruntime.Cleanup: use longer names for variables and createwrite_unraisable_exc_file() subfunction.
@vstinnervstinner merged commita58db96 intopython:3.7May 22, 2019
@vstinnervstinner deleted the unraisable37 branchMay 22, 2019 16:23
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@vstinner@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp