Timeout on read()?

Paul Duffin pduffin at hursley.ibm.com
Thu Aug 24 07:45:42 EDT 2000


David Bolen wrote:
> 
> Paul Duffin <pduffin at hursley.ibm.com> writes:
> 
> > Doesn't the async package hide all of these details.
> 
> Well, the package helps abstract using select() to multiplex socket
> I/O, but that just makes it subject to the same limitations of
> select() on any given platform.  So with respect to the original
> question of a timeout on read(), I don't think it changes much - since
> you're still stuck on Windows where select() can't be used for
> anything other than sockets.
> 

It seems to me as though Python could benefit from a Tcl style I/O
abstraction.
	General event loop.
	Event driven I/O.
	An abstract channel (very similar to a file descriptor on Unix).
	Consistent Windows/Unix/Mac view of all this.

Anyone here interested in doing something like this, or are you all happy
with what you have. I am sure that if we collaborated we could all benefit.



More information about the Python-list mailing list