Skip to content

gh-135450: Remove assertion in _PyCode_CheckNoExternalState #135466

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

Conversation

ZeroIntensity
Copy link
Member

@ZeroIntensity ZeroIntensity commented Jun 13, 2025

skip news because _interpreters isn't public.

Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ericsnowcurrently
Copy link
Member

@ZeroIntensity, FYI, I held off on merging this as I figured you could do it. 😄

@ZeroIntensity
Copy link
Member Author

@vstinner has control over my green button at the moment 😄. I think he wants me to merge some more trivial changes to help me adjust before merging things like this.

@ericsnowcurrently ericsnowcurrently merged commit 15f2bac into python:main Jun 18, 2025
50 checks passed
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 18, 2025
…ythongh-135466)

The assertion reflected a misunderstanding of situations where "hidden" variables might exist,
namely generator expressions and comprehensions.
(cherry picked from commit 15f2bac)

Co-authored-by: Peter Bierma <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Jun 18, 2025

GH-135694 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jun 18, 2025
ericsnowcurrently pushed a commit that referenced this pull request Jun 18, 2025
…h-135694)

The assertion reflected a misunderstanding of situations where "hidden" variables might exist,
namely generator expressions and comprehensions.

(cherry picked from commit 15f2bac, AKA gh-135466)

Co-authored-by: Peter Bierma <[email protected]>
@ZeroIntensity ZeroIntensity deleted the fix-subinterp-list-comp branch June 19, 2025 00:21
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