Is there a portable way to tell if data is available on a pipe?
John Nagle
nagle at animats.com
Mon Jan 21 15:36:33 EST 2008
Scott David Daniels wrote:
> John Nagle wrote:
>> I need some way to find out if a pipe has data available for
>> a read without blocking if it does not.
> ...
>> I'd like to avoid having a thread to manage each pipe, but if I
>> have to, so be it.
>
> Well, without granting your wish, put a Queue.Queue "in front" of
> each pipe. The per-pipe thread ...
That's what I thought. Oh, well.
John Nagle
More information about the Python-list
mailing list