Non blocking read from stdin on windows.

Noam Raphael noamr at remove.the.dot.myrea.lbox.com
Sun Dec 26 00:12:38 CET 2004


You can always have a thread which continually reads stdin and stores it 
in a string, or better, in a cStringIO.StringIO object. Then in the main 
thread, you can check whether something new has arrived. This, of course 
will work on all platforms.

I hope this helped a bit,
Noam



More information about the Python-list mailing list