Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-29587: Enable exception chaining for gen.throw() with "yield from" #19858

Merged
merged 1 commit into from
May 13, 2020

Commits on May 6, 2020

  1. bpo-29587: make gen.throw() chain exceptions with yield from

    The previous commits on bpo-29587 got exception chaining working
    with gen.throw() in the `yield` case. This patch also gets the
    `yield from` case working.
    
    As a consequence, implicit exception chaining now also works in
    the asyncio scenario of awaiting on a task when an exception is
    already active.
    
    Tests are included for both the asyncio case and the pure
    generator-only case.
    cjerdonek committed May 6, 2020
    Configuration menu
    Copy the full SHA
    1c505d4 View commit details
    Browse the repository at this point in the history