Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-29590: fix stack trace for gen.throw() with yield from#19896

Merged
markshannon merged 2 commits intopython:masterpython/cpython:masterfrom
cjerdonek:fix-issue-29590cjerdonek/cpython:fix-issue-29590Copy head branch name to clipboard
Jul 9, 2020
Merged

bpo-29590: fix stack trace for gen.throw() with yield from#19896
markshannon merged 2 commits intopython:masterpython/cpython:masterfrom
cjerdonek:fix-issue-29590cjerdonek/cpython:fix-issue-29590Copy head branch name to clipboard

Conversation

@cjerdonek
Copy link
Member

@cjerdonek cjerdonek commented May 4, 2020

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

cjerdonek added 2 commits May 3, 2020 21:57
When gen.throw() is called on a generator after a "yield from", the
intermediate stack trace entries are lost.  This commit fixes that.
@cjerdonek cjerdonek requested a review from 1st1 as a code owner May 4, 2020 06:54
@cjerdonek cjerdonek changed the title [WIP] bpo-29590: fix stack trace for gen.throw() with yield from bpo-29590: fix stack trace for gen.throw() with yield from May 4, 2020
@markshannon
Copy link
Member

LGTM.

@markshannon markshannon merged commit 8b33961 into python:master Jul 9, 2020
@miss-islington
Copy link
Contributor

Thanks @cjerdonek for the PR, and @markshannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖

@bedevere-bot
Copy link

@markshannon: Please replace # with GH- in the commit message next time. Thanks!

@bedevere-bot
Copy link

GH-21416 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 9, 2020
…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>
@miss-islington
Copy link
Contributor

Sorry, @cjerdonek and @markshannon, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 8b33961e4bc4020d8b2d5b949ad9d5c669300e89 3.8

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 20, 2020
)

* 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.
@miss-islington
Copy link
Contributor

Thanks @cjerdonek for the PR, and @markshannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 4, 2020
…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>
@bedevere-bot
Copy link

GH-22106 is a backport of this pull request to the 3.9 branch.

@miss-islington
Copy link
Contributor

Thanks @cjerdonek for the PR, and @markshannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @cjerdonek for the PR, and @markshannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

Sorry, @cjerdonek and @markshannon, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 8b33961e4bc4020d8b2d5b949ad9d5c669300e89 3.8

@Mariatta
Copy link
Member

Mariatta commented Sep 4, 2020

Someone has to manually backport to the 3.8 branch. (I'm not doing it)

miss-islington added a commit that referenced this pull request Sep 4, 2020
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.