[issue25489] sys.exit() caught in exception handler

R. David Murray report at bugs.python.org
Tue Oct 27 10:20:06 EDT 2015


R. David Murray added the comment:

I expected this function to be parallel to sys.excepthook, but I see that sys.excepthook does not get called if you call sys.exit() at the python prompt.  So I guess I agree with you that it is surprising, although I actually expected the opposite (that sys.excepthook would get called for sys.exit).

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25489>
_______________________________________


More information about the Python-bugs-list mailing list