FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.14] gh-132775: Fix Interpreter.call() __main__ Visibility (gh-135595) by miss-islington · Pull Request #135638 · python/cpython · GitHub

/ cpython Public

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

Merged
ericsnowcurrently merged 1 commit into
python:3.14from
miss-islington:backport-269e19e-3.14
Jun 17, 2025
Merged

[3.14] gh-132775: Fix Interpreter.call() __main__ Visibility (gh-135595)#135638
ericsnowcurrently merged 1 commit into
python:3.14from
miss-islington:backport-269e19e-3.14

Conversation

miss-islington commented Jun 17, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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 ericsnowcurrently@gmail.com

…-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 <ericsnowcurrently@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL