Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80280

Re: Misunderstanding buffering - flushing isn't

References <CANc-5UzkMpojwtTyY0kEAK1YiNnMmSKGgF0+VR=VsRUb_+etSQ@mail.gmail.com>
Date 2014-11-05 11:06 -0600
Subject Re: Misunderstanding buffering - flushing isn't
From Skip Montanaro <skip.montanaro@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.15507.1415207173.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Nov 5, 2014 at 10:44 AM, Skip Montanaro
<skip.montanaro@gmail.com> 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Misunderstanding buffering - flushing isn't Skip Montanaro <skip.montanaro@gmail.com> - 2014-11-05 11:06 -0600

csiph-web