STINNER Victor <victor.stin...@haypocalc.com> added the comment:

printtest2.py displays directly "Processing.. " on Windows, but not on Linux. 
It looks like stdout is not buffered on Windows, which looks like a bug to bug 
:-) I think that it is safer to always call sys.stdout.flush() to ensure that 
your message is directly displayed. With Python 2, you can use -u flag 
(unbuffered output) to avoid the explicit flush, but this is very inefficient 
(slow).

Python 3 uses line buffers, even with python3 -u, for better performances. If 
you want to see directly "Processing.. ", as Python 2, call sys.stdout.flush().

It is not a regression, it is a choice to be efficient.

----------
nosy: +haypo
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11633>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to