diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2020-05-13 23:18:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-13 23:18:27 (GMT) |
commit | 75cd8e48c62c97fdb9d9a94fd2335be06084471d (patch) | |
tree | bcd719b2442c302d0fb5100fb57894b6517ce090 /Lib/code.py | |
parent | d6fb53fe42d83a10f1372dd92ffaa6a01d2feffb (diff) | |
download | cpython-75cd8e48c62c97fdb9d9a94fd2335be06084471d.zip cpython-75cd8e48c62c97fdb9d9a94fd2335be06084471d.tar.gz cpython-75cd8e48c62c97fdb9d9a94fd2335be06084471d.tar.bz2 |
bpo-29587: Make gen.throw() chain exceptions with yield from (GH-19858)
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.
Diffstat (limited to 'Lib/code.py')
0 files changed, 0 insertions, 0 deletions