Can read() be non-blocking?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Fri Nov 7 03:07:13 CET 2008

In message <mailman.3600.1226012406.3487.python-list at>, Thomas
Christensen wrote:

>       r =[proc.stdout.fileno()], [], [], 5)[0]
>       if r:
>           # NOTE: This will block since it reads until EOF
>           data =

No, it will read what data is available.

More information about the Python-list mailing list