non blocking read()

Gustavo Córdova Avila gustavo.cordova at q-voz.com
Thu Dec 2 15:48:09 CET 2004


Donn Cave wrote:

>
>Depends.  I don't believe the original post mentioned
>that the file is a pipe, socket or similar, but it's
>kind of implied by the use of select() also mentioned.
>It's also kind of implied by use of the term "block" -
>disk files don't block.
>
>If we are indeed talking about a pipe or something that
>really can block, and you call fileobject.read(1024),
>it will block until it gets 1024 bytes.
>
>   Donn Cave, donn at u.washington.edu
>
Actually the op did mention that he wanted to monitor files.
-- 
Gustavo Córdova Avila <gustavo.cordova at q-voz.com> 
<mailto:gustavo.cordova at q-voz.com>
*Tel:* +52 (81) 8130-1919 ext. 127
Integraciones del Norte, S.A. de C.V.
Padua #6047, Colonia Satélite Acueducto
Monterrey, Nuevo León, México.



More information about the Python-list mailing list