Skip to content

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

Merged
markshannon merged 2 commits intopython:mainfrom
faster-cpython:fix-122155
Jul 23, 2024
Merged

GH-122155: Fix cases generator to correctly compute 'peek' offset for error handling#122158
markshannon merged 2 commits intopython:mainfrom
faster-cpython:fix-122155

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.

Loading
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