]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-29590: fix stack trace for gen.throw() with yield from (#19896)
authorChris Jerdonek <chris.jerdonek@gmail.com>
Thu, 9 Jul 2020 13:27:23 +0000 (06:27 -0700)
committerGitHub <noreply@github.com>
Thu, 9 Jul 2020 13:27:23 +0000 (14:27 +0100)
commit8b33961e4bc4020d8b2d5b949ad9d5c669300e89
treeabed35abb8d1696af9e068b6eeb44193ac4ed00f
parent96a6a6d42be272a27562d98549bbffc0d1854669
bpo-29590: fix stack trace for gen.throw() with yield from (#19896)

* Add failing test.

* bpo-29590: fix stack trace for gen.throw() with yield from (GH-NNNN)

When gen.throw() is called on a generator after a "yield from", the
intermediate stack trace entries are lost.  This commit fixes that.
Lib/test/test_generators.py
Misc/NEWS.d/next/Core and Builtins/2020-05-03-22-26-00.bpo-29590.aRz3l7.rst [new file with mode: 0644]
Objects/genobject.c