Author pitrou
Recipients CyberJacob, Decorater, Matt Groth, ellisj, eric.araujo, lazka, mwh, ncoghlan, pitrou, serhiy.storchaka, tiagoaoa, tim.peters, undercoveridiot, vlasovskikh, vstinner
Date 2019-05-25.21:19:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <3d109d52-adbf-0c7f-250e-af579d74f2ff@free.fr>
In-reply-to <1558818583.51.0.823618242649.issue1230540@roundup.psfhosted.org>
Content
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.
History
Date User Action Args
2019-05-25 21:19:46pitrousetrecipients: + pitrou, mwh, tim.peters, ncoghlan, ellisj, vstinner, tiagoaoa, eric.araujo, undercoveridiot, vlasovskikh, serhiy.storchaka, lazka, Decorater, CyberJacob, Matt Groth
2019-05-25 21:19:46pitroulinkissue1230540 messages
2019-05-25 21:19:46pitroucreate