[issue7932] print statement delayed IOError when stdout has been closed
tholzer
report at bugs.python.org
Sun Jun 8 23:52:25 CEST 2014
tholzer added the comment:
It's still a problem in Python 2.7:
python -c 'import sys; print >> sys.stdout, "x"' 1>&- ; echo $?
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
0
But feel free to close as "won't fix", as this seems to be an edge case which might not be worth fixing.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7932>
_______________________________________
More information about the Python-bugs-list
mailing list