| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
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 __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 |
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.
| Back | FazBrowse Home | New Git URL |
Add a -X command-line option to abort the current process
if PyErr_WriteUnraisable() is called.
https://bugs.python.org/issue36829