Skip to content

GH-122155: Fix cases generator to correctly compute 'peek' offset for error handling #122158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Jul 23, 2024

Computes the "peek" offset on demand, rather than attempting to keep it up to date as the stack is modified.
This is simpler and less error prone.

I'll like to backport this to 3.13, so that the fix for #122029 can be more easily backported.

@iritkatriel
Copy link
Member

There's a mypy error, but otherwise LGTM.

@markshannon markshannon merged commit 624bda7 into python:main Jul 23, 2024
39 checks passed
@miss-islington-app
Copy link

Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @markshannon, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 624bda76386efd8eecf73c4ad06f997b9b25f07f 3.13

@markshannon markshannon deleted the fix-122155 branch July 23, 2024 13:12
@markshannon markshannon restored the fix-122155 branch July 23, 2024 13:12
@markshannon markshannon deleted the fix-122155 branch July 23, 2024 13:12
markshannon added a commit to faster-cpython/cpython that referenced this pull request Jul 23, 2024
@bedevere-app
Copy link

bedevere-app bot commented Jul 23, 2024

GH-122174 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jul 23, 2024
nohlson pushed a commit to nohlson/cpython that referenced this pull request Jul 24, 2024
nohlson pushed a commit to nohlson/cpython that referenced this pull request Jul 24, 2024
markshannon added a commit that referenced this pull request Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants