-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
sys.ps1 and sys.ps2 should be reverted after code.interact #130660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
gaogaotiantian
added a commit
that referenced
this issue
Feb 28, 2025
gaogaotiantian
added a commit
that referenced
this issue
Mar 4, 2025
Triage: Is there anything more to do for this issue? |
It's finished. Thanks for find this :) |
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
Our documentation clearly states that
sys.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
The text was updated successfully, but these errors were encountered: