[New-bugs-announce] [issue46759] sys.excepthook documentation doesn't mention that it isn't called for SystemExit

Colin Watson report at bugs.python.org
Tue Feb 15 07:10:41 EST 2022


New submission from Colin Watson <cjwatson at users.sourceforge.net>:

In https://bugs.debian.org/1005803, Matthew Vernon reports that the library documentation for sys.excepthook doesn't mention the detail that that sys.excepthook isn't called for uncaught SystemExit exceptions, although help(sys) does mention this.

(He also mentions that help(sys.excepthook) doesn't mention this.  I think this would make less sense, since that gets the docstring of a particular implementation of an excepthook - on a given system it might not be Python's built-in version, for instance.  But adding information to the main library documentation seems reasonable.)

----------
assignee: docs at python
components: Documentation
messages: 413285
nosy: cjwatson, docs at python
priority: normal
severity: normal
status: open
title: sys.excepthook documentation doesn't mention that it isn't called for SystemExit
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46759>
_______________________________________


More information about the New-bugs-announce mailing list