Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
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