bpo-29590: fix stack trace for gen.throw() with yield from#19896
bpo-29590: fix stack trace for gen.throw() with yield from#19896markshannon merged 2 commits intopython:masterpython/cpython:masterfrom
Conversation
When gen.throw() is called on a generator after a "yield from", the intermediate stack trace entries are lost. This commit fixes that.
|
LGTM. |
|
Thanks @cjerdonek for the PR, and @markshannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
|
@markshannon: Please replace |
|
GH-21416 is a backport of this pull request to the 3.9 branch. |
…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 8b33961) Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
|
Sorry, @cjerdonek and @markshannon, I could not cleanly backport this to |
|
Thanks @cjerdonek for the PR, and @markshannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
…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 8b33961) Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
|
GH-22106 is a backport of this pull request to the 3.9 branch. |
|
Thanks @cjerdonek for the PR, and @markshannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
|
Thanks @cjerdonek for the PR, and @markshannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
|
Sorry, @cjerdonek and @markshannon, I could not cleanly backport this to |
|
Someone has to manually backport to the 3.8 branch. (I'm not doing it) |
* 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 8b33961) Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
This fixes the following issue: When gen.throw() is called on a generator after a "yield from", the
intermediate stack trace entries are lost.
https://bugs.python.org/issue29590