[issue7932] print statement delayed IOError when stdout has been closed
Martin v. Löwis
report at bugs.python.org
Mon Feb 15 07:46:03 CET 2010
Martin v. Löwis <martin at v.loewis.de> added the comment:
This is not a bug. The output stream gets buffered, and that it is closed is only detected when a flush is attempted. Use the -u option if you want unbuffered stdout.
It is, however, a bug that Python 2.6 apparently fails to flush the output at all; Python 2.5 did that correctly.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list