gh-132775: Fix Interpreter.call() __main__ Visibility (gh-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__.
E
Eric Snow committed
269e19e0a7efc62ee4ffbd8424974dc6d4fbfd5d
Parent: fba5dde
Committed by GitHub <noreply@github.com>
on 6/17/2025, 7:16:59 PM