Skip to content

Add sys.unraisablehook() to customize how "unraisable exceptions" are logged #81010

Closed
@graingert

Description

@graingert
mannequin
BPO 36829
Nosy @vstinner, @serhiy-storchaka, @graingert, @matrixise, @ZackerySpytz, @tirkarthi
PRs
  • bpo-36829: Add a -X option to abort in PyErr_WriteUnraisable() #13175
  • bpo-36829: Add sys.unraisablehook() #13187
  • [3.7] bpo-36829: Enhance PyErr_WriteUnraisable() #13487
  • bpo-36829: Add _PyErr_WriteUnraisableMsg() #13488
  • bpo-36829: Add test.support.catch_unraisable_exception() #13490
  • bpo-36829: PyErr_WriteUnraisable() normalizes exception #13507
  • bpo-36829: Document test.support.catch_unraisable_exception() #13554
  • bpo-36829: sys.excepthook and sys.unraisablehook flush #13620
  • bpo-36829: test_threading: Fix a ref cycle #13752
  • Files
  • gc_callback.py
  • uncollectable.py
  • io_destructor.py
  • site_hook.patch
  • too_late_unraisable.py
  • hook_file.patch
  • 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 = <Date 2019-05-27.22:57:04.603>
    created_at = <Date 2019-05-07.12:10:07.913>
    labels = ['interpreter-core', 'type-feature', '3.8']
    title = 'Add sys.unraisablehook() to customize how "unraisable exceptions" are logged'
    updated_at = <Date 2019-07-09.10:38:23.720>
    user = 'https://github.com/graingert'

    bugs.python.org fields:

    activity = <Date 2019-07-09.10:38:23.720>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-05-27.22:57:04.603>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2019-05-07.12:10:07.913>
    creator = 'graingert'
    dependencies = []
    files = ['48313', '48314', '48315', '48316', '48321', '48329']
    hgrepos = []
    issue_num = 36829
    keywords = ['patch']
    message_count = 32.0
    messages = ['341708', '341718', '341736', '341752', '341787', '341868', '342000', '342001', '342003', '342011', '342013', '342014', '342413', '342482', '342618', '343161', '343170', '343201', '343213', '343245', '343247', '343250', '343253', '343255', '343286', '343412', '343436', '343609', '343697', '343778', '344318', '347544']
    nosy_count = 6.0
    nosy_names = ['vstinner', 'serhiy.storchaka', 'graingert', 'matrixise', 'ZackerySpytz', 'xtreak']
    pr_nums = ['13175', '13187', '13487', '13488', '13490', '13507', '13554', '13620', '13752']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue36829'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions