Issue 1691387: Call sys.except_hook if exception occurs in del (original) (raw)

Issue1691387

Created on 2007-03-30 15:49 by jpe, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg55052 - (view) Author: John Ehresman (jpe) * Date: 2007-03-30 15:49
Is there a reason why sys.except_hook isn't called when __del__ returns with an exception? If not, I can write a patch to call sys.except_hook from PyErr_WriteUnraisable. The default of printing the full traceback should be possible in many situations.
msg109837 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-07-10 09:53
Please provide a patch.
msg184516 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-03-18 20:39
Re-reported and fixed in issue 7317.
History
Date User Action Args
2022-04-11 14:56:23 admin set github: 44788
2013-03-18 20:39:04 r.david.murray set status: open -> closedsuperseder: Display full tracebacks when an error occurs asynchronouslynosy: + r.david.murraymessages: + resolution: duplicatestage: test needed -> resolved
2010-07-10 09:53:22 BreamoreBoy set nosy: + BreamoreBoymessages: + versions: + Python 3.2, - Python 3.1, Python 2.7
2009-03-30 17:03:47 ajaksu2 set stage: test neededversions: + Python 3.1, Python 2.7, - Python 2.6
2007-03-30 15:49:23 jpe create