Skip to content

sys.excepthook documentation doesn't mention that it isn't called for SystemExit #90915

Description

@cjwatson
mannequin
BPO 46759
Nosy @cjwatson, @iritkatriel
PRs
  • GH-90915: Document that SystemExit doesn't trigger sys.excepthook #31357
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2022-02-15.12:10:41.510>
    labels = ['3.11', 'docs']
    title = "sys.excepthook documentation doesn't mention that it isn't called for SystemExit"
    updated_at = <Date 2022-03-20.09:50:38.228>
    user = 'https://github.com/cjwatson'

    bugs.python.org fields:

    activity = <Date 2022-03-20.09:50:38.228>
    actor = 'iritkatriel'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2022-02-15.12:10:41.510>
    creator = 'cjwatson'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46759
    keywords = ['patch']
    message_count = 2.0
    messages = ['413285', '415598']
    nosy_count = 3.0
    nosy_names = ['cjwatson', 'docs@python', 'iritkatriel']
    pr_nums = ['31357']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue46759'
    versions = ['Python 3.11']

    Linked PRs

    Activity

    1. cjwatson commented on Feb 15, 2022

      cjwatsonmannequin
      MannequinAuthor

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

    2. added
      docsDocumentation in the Doc dir
      3.11only security fixes
      on Feb 15, 2022
    3. iritkatriel commented on Mar 20, 2022

      @iritkatriel
      Member

      See also bpo-25489.

    4. transferred this issue fromon Apr 10, 2022
    5. added a commit that references this issue on Sep 7, 2023
    6. added 2 commits that reference this issue on Sep 7, 2023
    7. hugovk commented on Sep 7, 2023

      @hugovk
      Member

      Thanks, fixed via #31357 and backports to 3.11.

    8. added a commit that references this issue on Sep 7, 2023
    9. added a commit that references this issue on Sep 8, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesdocsDocumentation in the Doc dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions