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
{{ message }}
Repository navigation
sys.ps1 and sys.ps2 should be reverted after code.interact #130660
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.
Activity
gh-130660: Restore sys.ps1 and sys.ps2 after code.interact (#130661)
gh-130660: Add a test for pdb when user quits after interact command (#…
encukou commentedon Mar 19, 2025
Triage: Is there anything more to do for this issue?
gaogaotiantian commentedon Mar 19, 2025
It's finished. Thanks for find this :)