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

bpo-36829: Add a -X option to abort in PyErr_WriteUnraisable()#13175

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

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytzZackerySpytz commentedMay 7, 2019
edited by bedevere-bot
Loading

Add a -X command-line option to abort the current process
if PyErr_WriteUnraisable() is called.

https://bugs.python.org/issue36829

Add a -X command-line option to abort the current processif PyErr_WriteUnraisable() is called.
@matrixise
Copy link
Member

Hi@ZackerySpytz

Do you think you could add a test?

@vstinner
Copy link
Member

I am not sure I like this feature. Would it make sense to add a callback instead, like sys.excepthook? The callback could log the error, do nothing, abort the process, call the police, etc. It might be more general, no?

@graingert
Copy link
Contributor

@vstinner PyErr_WriteUnraisable can get called during__del__ or GC so most of the python environment could have already been deleted by the time the hook is called,

Or the hook could be called after the hook is removed by GC and then we're back to the same problem

@vstinner
Copy link
Member

I merged my PR#13187 instead, so I reject this PR. Seehttps://bugs.python.org/issue36829#msg343201 for the rationale.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gpsheadgpsheadAwaiting requested review from gpshead

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@ZackerySpytz@matrixise@vstinner@graingert@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp