bpo-36829: Add a -X option to abort in PyErr_WriteUnraisable()#13175
bpo-36829: Add a -X option to abort in PyErr_WriteUnraisable()#13175ZackerySpytz wants to merge 1 commit into
Conversation
Add a -X command-line option to abort the current process if PyErr_WriteUnraisable() is called.
|
Do you think you could add a test? |
Sorry, something went wrong.
|
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? |
Sorry, something went wrong.
|
@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 |
Sorry, something went wrong.
|
I merged my PR #13187 instead, so I reject this PR. See https://bugs.python.org/issue36829#msg343201 for the rationale. |
Sorry, something went wrong.
Add a -X command-line option to abort the current process
if PyErr_WriteUnraisable() is called.
https://bugs.python.org/issue36829