non blocking read()

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Dec 1 21:55:03 EST 2004


Steve Holden wrote:
> When access is made to a file object in 
> non-blocking mode it will return whatever data there are immediately 
> available in the buffers, up to the number of bytes requested. If the 
> buffers are currently empty the process will generate an error

Are you sure that's right? If so, it would seem that
reading a non-blocking disk file would *never* return
any data...

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list