Skip to content

Generator/coroutine 'throw' discards exc_info state, which is bad #73773

@njsmith

Description

@njsmith
BPO 29587
Nosy @gvanrossum, @vstinner, @ned-deily, @njsmith, @cjerdonek, @hynek, @vadmium, @1st1
PRs
  • bpo-29587: Enable implicit exception chaining with gen.throw() #19811
  • Revert "bpo-29587: Enable implicit exception chaining with gen.throw()" #19821
  • bpo-29587: Enable implicit exception chaining with gen.throw() #19823
  • bpo-29587: Add another test for the gen.throw() exception chain fix #19859
  • bpo-29587: Remove the exc_value NULL check in _gen_throw() #19877
  • bpo-29587: PyErr_SetObject() rejects exception=None #19902
  • bpo-29587: Enable exception chaining for gen.throw() with "yield from" #19858
  • 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 2020-05-02.01:26:31.061>
    created_at = <Date 2017-02-17.11:01:49.760>
    labels = ['type-bug', '3.9']
    title = "Generator/coroutine 'throw' discards exc_info state, which is bad"
    updated_at = <Date 2020-05-17.04:14:59.324>
    user = 'https://github.com/njsmith'

    bugs.python.org fields:

    activity = <Date 2020-05-17.04:14:59.324>
    actor = 'chris.jerdonek'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-05-02.01:26:31.061>
    closer = 'chris.jerdonek'
    components = []
    creation = <Date 2017-02-17.11:01:49.760>
    creator = 'njs'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 29587
    keywords = ['patch']
    message_count = 30.0
    messages = ['287987', '287992', '306100', '306158', '367747', '367773', '367774', '367776', '367783', '367784', '367786', '367787', '367788', '367789', '367792', '367827', '367833', '367905', '367907', '367908', '367924', '367926', '367954', '367956', '368013', '368053', '368164', '368617', '368806', '369093']
    nosy_count = 8.0
    nosy_names = ['gvanrossum', 'vstinner', 'ned.deily', 'njs', 'chris.jerdonek', 'hynek', 'martin.panter', 'yselivanov']
    pr_nums = ['19811', '19821', '19823', '19859', '19877', '19902', '19858']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue29587'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifetype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions