interactive prompt in IDLE

Jan Kanis jan-python-list at maka.demon.nl
Mon Jan 29 08:16:32 EST 2007


Hello everyone,

I'm trying to change the interactive python prompt. According to the docs  
this is done by changing sys.ps1 and sys.ps2 . That works fine when  
running python interactively from a command line, but when running in IDLE  
the .ps1 and .ps2 don't seem to exist.

I suppose this has something to do with Idle and the python shell in it  
both running in different processes, with the prompts generated by the  
Idle process?

Does anyone know if and how to change the prompts in IDLE's interactive  
python?

Jan



More information about the Python-list mailing list