This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author roger.serwy
Recipients Ramchandra Apte, roger.serwy
Date 2011-12-23.20:13:29
SpamBayes Score 5.928106e-07
Marked as misclassified No
Message-id <1324671210.81.0.760279763985.issue13657@psf.upfronthosting.co.za>
In-reply-to
Content
This would make the IDLE shell interface more consistent with the original interpreter. 

Presently, the ">>> " prompt is faked by "showprompt" in PyShell.py. It relies on "sys" from the IDLE gui process and not from the "sys" in the subprocess, so mimicking the changed prompt would require querying the subprocess for its sys.ps1 and sys.ps2. The "enter_callback" method will need modification to remove sys.ps2 from the text buffer before execution. Also, EditorWindow.py has code for handling sys.ps1 in "smart_backspace_event" and "newline_and_indent_event". 

If anything, this shell-specific, prompt-handling code needs some refactoring as it should only be in PyShell.py, not in EditorWindow.py.
Issue13039 is a result of prompt code side-effects in EditorWindow.py.
History
Date User Action Args
2011-12-23 20:13:30roger.serwysetrecipients: + roger.serwy, Ramchandra Apte
2011-12-23 20:13:30roger.serwysetmessageid: <1324671210.81.0.760279763985.issue13657@psf.upfronthosting.co.za>
2011-12-23 20:13:30roger.serwylinkissue13657 messages
2011-12-23 20:13:29roger.serwycreate