Simplify the interpreter's (type, val, tb) exception representation · Issue #89874 · python/cpython (original) (raw)

BPO 45711
Nosy @gvanrossum, @terryjreedy, @scoder, @vstinner, @markshannon, @brandtbucher, @da-woods, @iritkatriel
PRs bpo-45711: Use _PyErr_ClearExcState instead of setting only exc_value… #29404bpo-45711: remove unnecessary DUP_TOP and POP in exception handling #29495bpo-45711: assert that the type of exc_info is redundant #29518bpo-45711: Re-bump the magic number and update doc #29528bpo-45711: use exc_value instead of exc_type to determine if exc_info is valid. Add more assertions. #29627bpo-45711: Change exc_info related APIs to derive type and traceback from the exception instance #29780bpo-45711: [asyncio] Normalize exceptions immediately after Fetch, before they are stored as StackItem, which should be normalized #29890bpo-45711: Remove unnecessary normalization of exc_info #29922bpo-45711: Remove type and traceback from exc_info #30122bpo-46219, 46221: simplify except* implementation following exc_info changes. Move helpers to exceptions.c. Do not assume that exception groups are truthy. #30289bpo-45711: move whatsnew entries which are incorrectly listed under N… #30849

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 2022-03-13.19:33:16.899> created_at = <Date 2021-11-04.11:29:47.242> labels = ['interpreter-core', '3.11', 'performance'] title = "Simplify the interpreter's (type, val, tb) exception representation" updated_at = <Date 2022-03-13.19:33:16.899> user = 'https://github.com/iritkatriel'

bugs.python.org fields:

activity = <Date 2022-03-13.19:33:16.899> actor = 'iritkatriel' assignee = 'none' closed = True closed_date = <Date 2022-03-13.19:33:16.899> closer = 'iritkatriel' components = ['Interpreter Core'] creation = <Date 2021-11-04.11:29:47.242> creator = 'iritkatriel' dependencies = [] files = [] hgrepos = [] issue_num = 45711 keywords = ['patch'] message_count = 31.0 messages = ['405681', '405839', '405849', '406114', '406120', '406209', '406238', '406983', '406984', '407402', '407597', '408043', '408768', '408786', '409453', '411497', '412264', '412265', '412270', '412272', '412273', '412275', '412281', '412289', '412290', '412292', '412303', '412304', '412316', '414482', '415086'] nosy_count = 8.0 nosy_names = ['gvanrossum', 'terry.reedy', 'scoder', 'vstinner', 'Mark.Shannon', 'brandtbucher', 'da-woods', 'iritkatriel'] pr_nums = ['29404', '29495', '29518', '29528', '29627', '29780', '29890', '29922', '30122', '30289', '30849'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'performance' url = 'https://bugs.python.org/issue45711' versions = ['Python 3.11']