gh-117953: Always Run Extension Init Func in Main Interpreter First (gh-118157)
This change makes sure all extension/builtin modules have their init function run first by the main interpreter before proceeding with import in the original interpreter (main or otherwise). This means when the import of a single-phase init module fails in an isolated subinterpreter, it won't tie any global state/callbacks to the subinterpreter.
E
Eric Snow committed
b2cd54a4fb2ecdb7b1d30bda8af3314d3a32031e
Parent: 1a23716
Committed by GitHub <noreply@github.com>
on 5/7/2024, 4:21:51 AM