read stdout/stderr without blocking

Jacek Popławski jpopl at interia.pl
Mon Sep 12 07:14:13 EDT 2005


Adriaan Renting wrote:
> Check out the select module, for an example on how to use it:
> pexpect.sourceforge.net

Two problems:
- it won't work on Windows (Cygwin)
- how much data should I read after select? 1 character? Can it block if 
I read 2 characters?



More information about the Python-list mailing list