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


Groups > comp.lang.python > #38170 > unrolled thread

Re: autoflush on/off

Started byLele Gaifax <lele@metapensiero.it>
First post2013-02-05 08:40 +0100
Last post2013-02-05 08:40 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: autoflush on/off Lele Gaifax <lele@metapensiero.it> - 2013-02-05 08:40 +0100

#38170 — Re: autoflush on/off

FromLele Gaifax <lele@metapensiero.it>
Date2013-02-05 08:40 +0100
SubjectRe: autoflush on/off
Message-ID<mailman.1355.1360050070.2939.python-list@python.org>
Terry Reedy <tjreedy@udel.edu> writes:

> It looks like you should perhaps just forget about reopening and just
> use sys.stdout.flush(). This works fine even on IDLE.

As an alternative, can't you just use sys.stderr for printing such
feedback? sys.stderr is unbuffered by default...

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@metapensiero.it  |                 -- Fortunato Depero, 1929.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web