Debian Bug report logs - #1005803
python3: documentation of sys.excepthook is inconsistent about SystemExit

version graph

Package: python3; Maintainer for python3 is Matthias Klose <[email protected]>; Source for python3 is src:python3-defaults (PTS, buildd, popcon).

Reported by: Matthew Vernon <[email protected]>

Date: Tue, 15 Feb 2022 10:33:02 UTC

Severity: normal

Tags: upstream

Found in version python3-defaults/3.9.2-3

Forwarded to https://bugs.python.org/issue46759

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Matthias Klose <[email protected]>:
Bug#1005803; Package python3. (Tue, 15 Feb 2022 10:33:04 GMT) (full text, mbox, link).


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).


Message #5 received at [email protected] (full text, mbox, reply):

From: Matthew Vernon <[email protected]>
To: Debian Bug Tracking System <[email protected]>
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



Information forwarded to [email protected], Matthias Klose <[email protected]>:
Bug#1005803; Package python3. (Tue, 15 Feb 2022 12:15:04 GMT) (full text, mbox, link).


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).


Message #10 received at [email protected] (full text, mbox, reply):

From: Colin Watson <[email protected]>
To: Matthew Vernon <[email protected]>, [email protected]
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]]



Set Bug forwarded-to-address to 'https://bugs.python.org/issue46759'. Request was from Colin Watson <[email protected]> to [email protected]. (Tue, 15 Feb 2022 12:15:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 14:54:24 2025; Machine Name: buxtehude

Debian Bug tracking system

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/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.