A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/306543.html below:

read stdout/stderr without blocking

read stdout/stderr without blocking read stdout/stderr without blockingGrant Edwards grante at visi.com
Mon Sep 12 10:41:19 EDT 2005
On 2005-09-12, Jacek Pop?awski <jpopl at interia.pl> wrote:
>>         ready = select.select(tocheck, [], [], 0.25) ##continues after 0.25s
>>         for file in ready[0]:
>>             try:
>>                 text = os.read(file, 1024)
>
> How do you know here, that you should read 1024 characters?
> What will happen when output is shorter?

It will return however much data is available.

-- 
Grant Edwards                   grante             Yow!  I'm a fuschia bowling
                                  at               ball somewhere in Brittany
                               visi.com            

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4