]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-29587: Enable implicit exception chaining with gen.throw() (GH-19811)
authorChris Jerdonek <chris.jerdonek@gmail.com>
Thu, 30 Apr 2020 19:18:05 +0000 (12:18 -0700)
committerGitHub <noreply@github.com>
Thu, 30 Apr 2020 19:18:05 +0000 (12:18 -0700)
commit2514a632fb7d37be24c2059d0e286d35600f9795
treebdf3c5f468206dae232a23b55503cf9cbced5616
parentc001c09e9059ba04bc088349cd87a1374dc0754f
bpo-29587: Enable implicit exception chaining with gen.throw() (GH-19811)

Before this commit, if an exception was active inside a generator
when calling gen.throw(), then that exception was lost (i.e. there
was no implicit exception chaining).  This commit fixes that.
Lib/test/test_generators.py
Misc/NEWS.d/next/Core and Builtins/2020-04-30-00-50-25.bpo-29587.oEwSq.rst [new file with mode: 0644]
Objects/genobject.c