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
-- http://mail.python.org/mailman/listinfo/python-list