-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Interpreter Methods For Main Interpreter Fail Unexpectedly #139458
Copy link
Copy link
Open
Labels
3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Todo
Bug report
Bug description:
The following should run without error:
Instead, the four different calls against
interp0raiseInterpreterErrorwith "cannot ... unrecognized interpreter 0". The calls toexec()andcall()should fail with something like "running main".The call toWhetherprepare_main()should work.prepare_main()should work or not is a separate matter. Regardless, the main interpreter should be recognized.Note that
interp0.is_runningdoes work, as expected.CPython versions tested on:
3.15, 3.14
Operating systems tested on:
No response
Linked PRs