non blocking read()

Greg Ewing greg at cosc.canterbury.ac.nz
Fri Dec 3 03:14:16 CET 2004


Donn Cave wrote:
> Yes, this looks right to me, but I think we're talking
> about os.read(), not fileobject.read().

Indeed, you shouldn't be mixing select() with buffered
io, or all kinds of bad things can happen.

Everything I said applies to OS-level reads and
writes, not stdio-level ones.

-- 
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