[Idle-dev] problems with IDLE sys.stdin

Jeff Learman jlearman at cisco.com
Sun Sep 5 17:23:54 CEST 2004

When running under DOS, sys.stdin.readline() is valid.
When running under IDLE, I get an attribute error when I try it.

Also, I want to use msvcrt.getch() & getche() but they don't
block as documented in Python docs section 22.1.2 (Console I/O).

For example, this program:  
import msvcrt

print msvcrt.kbhit() 
print "prompt: ", 
ch = msvcrt.getch() 
print ord(ch) 
generates this output, without hitting any keys:


It should block after printing "prompt: ", and only print the third line
after a key is pressed.

Sorry if this is a known issue, but there's no search option for
the idle-dev archive.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/idle-dev/attachments/20040905/52812e42/attachment.html

More information about the IDLE-dev mailing list