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, [EMAIL PROTECTED]

Actually the op did mention that he wanted to monitor files.
--
Gustavo Córdova Avila <[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]>
*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.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to