non blocking read()

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Dec 2 21:14:16 EST 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