Message343516
Le 25/05/2019 à 23:09, STINNER Victor a écrit :
>
> I don't see the relationship between the API (signature) and the ability to set a per-thread hook.
>
> I'm not convinced that a per-thread hook is needed.
Indeed, if you write your own Thread class, you can add a try...except
in the Thread.run() method. You don't need a dedicated
Thread.excepthook() method.
The only way a per-thread hook could be useful is if you could set it
*outside* of the Thread class (so not as a method), so that one can e.g.
catch / report exceptions raised in threads launches by third-party
libraries. |
|
Date |
User |
Action |
Args |
2019-05-25 21:19:46 | pitrou | set | recipients:
+ pitrou, mwh, tim.peters, ncoghlan, ellisj, vstinner, tiagoaoa, eric.araujo, undercoveridiot, vlasovskikh, serhiy.storchaka, lazka, Decorater, CyberJacob, Matt Groth |
2019-05-25 21:19:46 | pitrou | link | issue1230540 messages |
2019-05-25 21:19:46 | pitrou | create | |
|