Skip to content

Async generator might re-throw GeneratorExit on aclose() #79590

Description

@vxgmichel
mannequin
BPO 35409
Nosy @Fak3, @vxgmichel, @miss-islington, @catern
PRs
  • bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw #14755
  • [3.7] bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw (GH-14755) #17257
  • [3.8] bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw (GH-14755) #17258
  • Files
  • example.py: Reproduce the issue with asyncio
  • test.py: Reproduce the issue without asyncio
  • patch.diff: A possible fix
  • 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-11-19.13:55:48.587>
    created_at = <Date 2018-12-04.13:21:20.827>
    labels = ['interpreter-core', '3.8', 'type-bug', '3.7', '3.9']
    title = 'Async generator might re-throw GeneratorExit on aclose()'
    updated_at = <Date 2020-08-29.20:34:14.782>
    user = 'https://github.com/vxgmichel'

    bugs.python.org fields:

    activity = <Date 2020-08-29.20:34:14.782>
    actor = 'catern'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-11-19.13:55:48.587>
    closer = 'asvetlov'
    components = ['Interpreter Core']
    creation = <Date 2018-12-04.13:21:20.827>
    creator = 'vxgmichel'
    dependencies = []
    files = ['47972', '47973', '47974']
    hgrepos = []
    issue_num = 35409
    keywords = ['patch']
    message_count = 6.0
    messages = ['331043', '356968', '356969', '356970', '376075', '376076']
    nosy_count = 4.0
    nosy_names = ['Roman.Evstifeev', 'vxgmichel', 'miss-islington', 'catern']
    pr_nums = ['14755', '17257', '17258']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue35409'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions