Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.14] gh-132775: Fix Interpreter.call() __main__ Visibility (gh-135595) #135638

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 1 commit into from
Jun 17, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 17, 2025

As noted in the new tests, there are a few situations we must carefully accommodate
for functions that get pickled during interp.call(). We do so by running the script
from the main interpreter's main module in a hidden module in the other
interpreter. That hidden module is used as the function globals.
(cherry picked from commit 269e19e)

Co-authored-by: Eric Snow [email protected]

…-135595)

As noted in the new tests, there are a few situations we must carefully accommodate
for functions that get pickled during interp.call().  We do so by running the script
from the main interpreter's __main__ module in a hidden module in the other
interpreter.  That hidden module is used as the function __globals__.
(cherry picked from commit 269e19e)

Co-authored-by: Eric Snow <[email protected]>
@ericsnowcurrently ericsnowcurrently enabled auto-merge (squash) June 17, 2025 19:18
@ericsnowcurrently ericsnowcurrently merged commit 2c29ee8 into python:3.14 Jun 17, 2025
74 of 76 checks passed
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