Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.054 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'output': 0.05; '(just': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'appears': 0.22; 'print': 0.22; 'case.': 0.24; 'skip': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'respective': 0.29; 'message-id:@mail.gmail.com': 0.30; 'request,': 0.31; 'maybe': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'nov': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'stand': 0.64; 'subject:skip:M 10': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=JRJVoVk6M3J70lfrOzhPCkTaejgKx96E9yXXBa+LUgk=; b=zB/hLzG2UMHjxnLs5viOjXFKq78kASa4uVtx9LF0O8a0y9pvAb7Nji7K5gyGaEQe9c 4lEZS+/LiU3WIfy0WPPZCK1Dn3PmoVcPmCmVNG5fpVIjY6ynuWkCgkOiBtftxcbnebYI qwkzYHFRiOtznTpHdx6xpfMuXiytRqo7CHV9umdPPfqb6LwSu2SsFfTsU4lnpqxOHzKm dEQ/ROXua5QMYhtN4BjY6RVLaY3+mYvOi/igzSH1EUbDWi/tACpecAeRJmiTs0aJfp2/ OkDvmTS2QxxCfu3J5R8yeMHkuIVQ/6nJhjEnq5ZCpq6V2GwUnokPz1385cCL/tYzkNUW wm2w== MIME-Version: 1.0 X-Received: by 10.51.17.69 with SMTP id gc5mr32765634igd.24.1415207165197; Wed, 05 Nov 2014 09:06:05 -0800 (PST) In-Reply-To: References: Date: Wed, 5 Nov 2014 11:06:05 -0600 Subject: Re: Misunderstanding buffering - flushing isn't From: Skip Montanaro To: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415207173 news.xs4all.nl 2885 [2001:888:2000:d::a6]:49933 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80280 On Wed, Nov 5, 2014 at 10:44 AM, Skip Montanaro wrote: > I figured everything would be flushed to the respective .stdout and > .stderr files at the end of every request, but that appears not to be > the case. I stand corrected. I added print ">> request finished" to the end of do_GET (just before the flush() calls). I see that in the output files after the request finishes. Maybe I was just dreaming... S