Skip to content

GH-148874: Make sure that mngr.__exit__() is always called in a with statement#150911

Open
markshannon wants to merge 2 commits into
python:mainfrom
markshannon:fix-call-in-with
Open

GH-148874: Make sure that mngr.__exit__() is always called in a with statement#150911
markshannon wants to merge 2 commits into
python:mainfrom
markshannon:fix-call-in-with

Conversation

@markshannon
Copy link
Copy Markdown
Member

@markshannon markshannon commented Jun 4, 2026

... even if there is an interrupt during the call to mngr.__enter__()

When checking the eval breaker after a call, don't break if the previous code unit has opcode == LOAD_SPECIAL.
Sometimes a cache will appear to be a LOAD_SPECIAL, but this is fine as this only applies to calls, and any loop will still have an eval breaker check on the back edge.

…even if there is an interrupt during the call to mngr.__enter__()
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.

1 participant