Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Bug report
Bug description:
The code inpymain_repl() in "Modules/main.c" needs to check_Py_GetEnv(config->use_environment, "PYTHON_BASIC_REPL"). Otherwise running with-i, or withPYTHONINSPECT set in the environment, ends up running the new REPL instead of the basic REPL after the command or script finishes.
Lines 545 to 550 in02c1dff
| if (!isatty(fileno(stdin))) { | |
| PyCompilerFlagscf=_PyCompilerFlags_INIT; | |
| intrun=PyRun_AnyFileExFlags(stdin,"<stdin>",0,&cf); | |
| *exitcode= (run!=0); | |
| return; | |
| } |
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux