[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

Roger Serwy report at bugs.python.org
Sat Dec 24 05:36:03 CET 2011


Roger Serwy <roger.serwy at gmail.com> added the comment:

> Is that sensibly possible? Any line of code can change those, so IDLE would have to do the equivalent of idle.ps1,idle.ps2 = sys.ps1, sys.ps2 before every new ps1 statement prompt.

It may be possible if the code gets refactored such that the subprocess handles the prompt and has stdin/stdout/stderr through RPCProxy treat the PyShell text widget as a dumb terminal.

> I would rather remove the prompts from the entry window itself, and use 4 char indents instead of 8, so that cutting does not pick up the prompts.  IDLE does not have to exactly imitate the Command Window interface. It could also give the user a choice.

This is #11838 and #1178.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13657>
_______________________________________


More information about the Python-bugs-list mailing list