You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our documentation clearly states that sys.ps1 and sys.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 keep sys.ps1 and sys.ps2 because that could mislead programs to think the interpreter is still in interactive mode.
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: