how to stop a loop with ESC key? [newbie]

Mikael Olofsson mikael at isy.liu.se
Tue Nov 8 06:00:05 EST 2005


Fredrik Lundh wrote:
> works for me, when running it from a stock CPython interpreter in a windows
> console window, with focus set to that window.
> 
> what environment are you using?

Could be IDLE. The code Fredrik proposed works well for me in the Python 
console window, but not in IDLE (thats under XP). I guess that IDLE 
makes use of msvcrt itself. Let's remember that the OP describes himself 
as a newbie in the subject, so he might not know the difference between 
those two interactive environments.

/MiO



More information about the Python-list mailing list