In message <[EMAIL PROTECTED]>, Lawrence D'Oliveiro wrote:

> In message <[EMAIL PROTECTED]>, Thomas
> Christensen wrote:
> 
>>       r = select.select([proc.stdout.fileno()], [], [], 5)[0]
>>       if r:
>>           # NOTE: This will block since it reads until EOF
>>           data = proc.stdout.read()
> 
> No, it will read what data is available.

Sorry, maybe not. But you can set O_NOBLOCK on the fd.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to