Message386703
It makes sense to call _PyErr_WriteUnraisableMsg() when sys.excepthook raise a new exception. Do you want to propose a PR for that?
sys.excepthook documentation mentions sys.unraisablehook:
https://docs.python.org/dev/library/sys.html#sys.excepthook
threading._make_invoke_excepthook logs threading.excepthook failure using sys.excepthook.
Note: Carl also suggested to add a way to invoke sys.unraisablehook explicitly, not only for testing purpose. It would help in some cases. |
|
Date |
User |
Action |
Args |
2021-02-09 10:38:31 | vstinner | set | recipients:
+ vstinner, Carl.Friedrich.Bolz, Julian |
2021-02-09 10:38:31 | vstinner | set | messageid: <1612867111.04.0.454681290392.issue43148@roundup.psfhosted.org> |
2021-02-09 10:38:31 | vstinner | link | issue43148 messages |
2021-02-09 10:38:30 | vstinner | create | |
|