Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
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
bpo-36829: Add a -X option to abort in PyErr_WriteUnraisable()#13175
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Add a -X command-line option to abort the current processif PyErr_WriteUnraisable() is called.
Do you think you could add a test? |
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? |
@vstinner PyErr_WriteUnraisable can get called during Or the hook could be called after the hook is removed by GC and then we're back to the same problem |
I merged my PR#13187 instead, so I reject this PR. Seehttps://bugs.python.org/issue36829#msg343201 for the rationale. |
Uh oh!
There was an error while loading.Please reload this page.
Add a -X command-line option to abort the current process
if PyErr_WriteUnraisable() is called.
https://bugs.python.org/issue36829