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

sys.ps1 and sys.ps2 should be reverted after code.interact #130660

Closed
Labels
stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
@gaogaotiantian

Description

@gaogaotiantian

Bug report

Bug description:

Ourdocumentation clearly states thatsys.ps1 andsys.ps2 are only defined when the interpreter is in interactive mode.code.interact brings the interpreter to interactive mode, but after the function the interpreter is not in that mode anymore. Therefore, we should not keepsys.ps1 andsys.ps2 because that could mislead programs to think the interpreter is still in interactive mode.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-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