interactive prompt in IDLE

Gabriel Genellina gagsl-py at yahoo.com.ar
Mon Jan 29 23:54:51 EST 2007


En Mon, 29 Jan 2007 10:16:32 -0300, Jan Kanis  
<jan-python-list at maka.demon.nl> escribió:

> 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?

I'm using Python 2.5 on Windows XP.
I change ps1 and ps2 in sitecustomize.py, and both pythonwin and  
python.exe work fine.
I don't usually open IDLE, but ps1 was changed, altough it does not appear  
to use ps2 (it was replaced by "   ")

-- 
Gabriel Genellina




More information about the Python-list mailing list