[issue7932] print statement delayed IOError when stdout has been closed

Eugene Tang report at bugs.python.org
Sun Jun 22 22:01:52 CEST 2014


Eugene Tang added the comment:

A similar problem seems to appear in Python 3.5

./python -c 'import sys; print("x", file=sys.stdout)' 1>&- ; echo $? 
0

./python -c 'import sys; print("x", file=sys.stderr)' 2>&- ; echo $?
x
0

but again, this does seem to be a very specific corner case.

----------
nosy: +eugenet
versions: +Python 3.5 -Python 2.6

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


More information about the Python-bugs-list mailing list