bpo-36829: Add a -X option to abort in PyErr_WriteUnraisable() by ZackerySpytz · Pull Request #13175 · python/cpython (original) (raw)

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?