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

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

Merged
markshannon merged 2 commits into
python:mainpython/cpython:mainfrom
faster-cpython:fix-122155faster-cpython/cpython:fix-122155Copy head branch name to clipboard
Jul 23, 2024
Merged

GH-122155: Fix cases generator to correctly compute 'peek' offset for error handling#122158
markshannon merged 2 commits into
python:mainpython/cpython:mainfrom
faster-cpython:fix-122155faster-cpython/cpython:fix-122155Copy head branch name to clipboard

Conversation

@markshannon

@markshannon markshannon commented Jul 23, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

There's a mypy error, but otherwise LGTM.

@markshannon markshannon merged commit 624bda7 into python:main Jul 23, 2024
@miss-islington-app

Copy link
Copy Markdown

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

@miss-islington-app

Copy link
Copy Markdown

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

bedevere-app Bot commented Jul 23, 2024

Copy link
Copy Markdown

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

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