Acknowledgement sent
to Matthew Vernon <[email protected]>:
New Bug report received and forwarded. Copy sent to Matthias Klose <[email protected]>.
(Tue, 15 Feb 2022 10:33:04 GMT) (full text, mbox, link).
Subject: python3: documentation of sys.excepthook is inconsistent about SystemExit
Date: Tue, 15 Feb 2022 10:31:29 +0000
Package: python3
Version: 3.9.2-3
Severity: normal
Tags: upstream
Hi,
sys.excepthook is called to handle any uncaught exception, other than SystemExit.
This behaviour is described correctly in help(sys).
help(sys.excepthook) and the web documentation[0] both lack the IMO
important fact that python doesn't call excepthook for SystemExit. It
would be nice if they did :)
Thanks,
Matthew
[0] https://docs.python.org/3.11/library/sys.html#sys.excepthook
-- System Information:
Debian Release: 11.2
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-7-amd64 (SMP w/16 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
Versions of packages python3-minimal depends on:
ii dpkg 1.20.9
ii python3.9-minimal 3.9.2-1
python3-minimal recommends no packages.
python3-minimal suggests no packages.
-- no debconf information
Acknowledgement sent
to Colin Watson <[email protected]>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <[email protected]>.
(Tue, 15 Feb 2022 12:15:04 GMT) (full text, mbox, link).
Subject: Re: Bug#1005803: python3: documentation of sys.excepthook is
inconsistent about SystemExit
Date: Tue, 15 Feb 2022 12:11:29 +0000
Control: forwarded -1 https://bugs.python.org/issue46759
On Tue, Feb 15, 2022 at 10:31:29AM +0000, Matthew Vernon wrote:
> sys.excepthook is called to handle any uncaught exception, other than SystemExit.
>
> This behaviour is described correctly in help(sys).
>
> help(sys.excepthook) and the web documentation[0] both lack the IMO
> important fact that python doesn't call excepthook for SystemExit. It
> would be nice if they did :)
I've forwarded this upstream as https://bugs.python.org/issue46759.
--
Colin Watson (he/him) [[email protected]]
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.