diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-09-04 23:07:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 23:07:18 (GMT) |
commit | e92219d8f864a1a8eb381d98d5df4f1aa767dacb (patch) | |
tree | 737d03df4becc2a6c348b6a2940828266f75cd61 /Misc | |
parent | 106c1df736d38f5b411a8571b97275d0ecf1d0a9 (diff) | |
download | cpython-e92219d8f864a1a8eb381d98d5df4f1aa767dacb.zip cpython-e92219d8f864a1a8eb381d98d5df4f1aa767dacb.tar.gz cpython-e92219d8f864a1a8eb381d98d5df4f1aa767dacb.tar.bz2 |
bpo-29590: fix stack trace for gen.throw() with yield from (GH-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.
(cherry picked from commit 8b33961e4bc4020d8b2d5b949ad9d5c669300e89)
Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2020-05-03-22-26-00.bpo-29590.aRz3l7.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-05-03-22-26-00.bpo-29590.aRz3l7.rst b/Misc/NEWS.d/next/Core and Builtins/2020-05-03-22-26-00.bpo-29590.aRz3l7.rst new file mode 100644 index 0000000..2570c4f --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2020-05-03-22-26-00.bpo-29590.aRz3l7.rst @@ -0,0 +1,2 @@ +Make the stack trace correct after calling :meth:`generator.throw` +on a generator that has yielded from a ``yield from``. |