Python 2.2.1 and select()

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Mar 24 23:29:44 EDT 2008


En Mon, 24 Mar 2008 23:03:56 -0300, Derek Martin <code at pizzashack.org>  
escribió:
> On Mon, Mar 24, 2008 at 05:52:54PM -0700, Noah wrote:
>> On Mar 24, 2:58 pm, Derek Martin <c... at pizzashack.org> wrote:
>> > If and only if the total amount of output is greater than the
>> > specified buffer size, then reading on this file hangs indefinitely.

You may try using two worker threads to read both streams; this way you  
don't care about the blocking issues.

-- 
Gabriel Genellina




More information about the Python-list mailing list