autoflush on/off

Lele Gaifax lele at
Tue Feb 5 08:40:58 CET 2013

Terry Reedy <tjreedy at> 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 at  |                 -- Fortunato Depero, 1929.

More information about the Python-list mailing list