[Python-Dev] Python3: speed efficiency vs user friendliness (my first experience)

Victor Stinner victor.stinner at haypocalc.com
Wed Mar 23 14:55:48 CET 2011


Le mercredi 23 mars 2011 à 22:58 +1000, Nick Coghlan a écrit :
> There are several ways to get unbuffered IO back in a cross-platform
> manner, ...

Oh, by the way: TextIOWrapper doesn't support unbuffered mode. Only
fully buffered and line buffered modes. So print("Test", end='') doesn't
display immediatly Test, even with "python -u".

python -u is only useful if the output is redirected to a pipe/a file,
if you would like a line buffering (instead of a full buffering).

Victor

(This email thread begins to be a little bit redundant with the issue on
the bug tracker)



More information about the Python-Dev mailing list