interactive prompt in IDLE

J

Jan Kanis

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top