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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to