[issue11633] regression: print buffers output when end=''

STINNER Victor report at bugs.python.org
Tue Mar 22 12:57:46 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> How about making print() user-friendly with flushing after every call,
> and if you want explicitly want speed - use buffered
> sys.stdout.write/flush()?

This is exactly the -u option of Python 2: use it if you would like a completly unbuffered sys.stdout in a portable way.

In Python 3, it is only useful to flush at each line, even if the output is not a console, but a pipe (e.g. output redirected to a file). But nobody asked yet to have a fully unbuffered sys.stdout in Python 3.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11633>
_______________________________________


More information about the Python-bugs-list mailing list