Idle's Shell: prompts and indents (was ...) Idle users please read

Chris Angelico rosuav at gmail.com
Mon Jul 21 06:56:11 EDT 2014


On Mon, Jul 21, 2014 at 7:00 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> In general, Idle should execute user code the same way that the interpreter
> does, subject to the limitations of the different execution environment.

Agreed, but I think the setting of prompts is a "different execution
environment" case. It's a fundamental difference between batch mode
and interactive, and Idle uses batch mode to implement interactive
mode. So something like:

>>> sys.ps1="Python> "
"Setting sys.ps1 has no effect in Idle; see the Options menu."
>>>

It might not be possible, but if it is, it wouldn't break any actual
viable use-cases.

ChrisA



More information about the Python-list mailing list