A completely silly question

Steven Bethard steven.bethard at gmail.com
Fri Dec 17 19:32:43 CET 2004


Amir Dekel wrote:
> What I need from the program is to wait for a single character input, 
> something like while(getchar()) in C. All those Python modules don't 
> make much sence to me...

sys.stdin.read(1)

but if you're having trouble reading the module documentation, maybe you 
could elaborate on what's giving you trouble.  The answer to 99% of 
questions on this list is in the documentation somewhere, so if you 
don't know how to read it, you're going to have trouble with Python.

Steve



More information about the Python-list mailing list