Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PYTHON_BASIC_REPL is ignored by interactive inspect #120346

Closed
Assignees
pablogsal
Labels
3.13bugs and security fixes3.14bugs and security fixestopic-replRelated to the interactive shelltriagedThe issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or error
@eryksun

Description

@eryksun

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.

cpython/Modules/main.c

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

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixes3.14bugs and security fixestopic-replRelated to the interactive shelltriagedThe issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp