select.select() on Regular Files?
Grant Edwards
grante at visi.com
Thu Mar 7 10:41:27 EST 2002
In article <a678ud$30dv$1 at news.idiom.com>, Jim Dennis wrote:
> O.K. so what can I do for asynchronous I/O notification on
> regular files? How can I efficiently block and wake up when
> I/O is available on any of my file descriptors?
>
> Don't tell me I have to go into a sleep and poll stat() or
> seek() loop! It's hard to imagine that UNIX got this far
> without offering a better solution than that!
It's hard to imagine that people use MS Windows, but I have it
on good authority that many do!
I don't suppose you could use pipes or ptys? They both do what
you want...
--
Grant Edwards grante Yow! My life is a patio
at of fun!
visi.com
More information about the Python-list
mailing list