[issue5321] I/O error during one-liner gives no (!) diagnostic (and fails to return OS error status)

Stefan Krah report at bugs.python.org
Fri Jul 9 18:39:18 CEST 2010


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

Yes, it's an issue in py3k. Also, I prefer the behavior of 2.5, but
I'm not sure if that can be changed easily in 2.7.


$ python2.5 -c 'print((1, 2, 3))' > /dev/full
close failed: [Errno 28] No space left on device

$ python2.7 -c 'print((1, 2, 3))' > /dev/full
close failed in file object destructor:
Error in sys.excepthook:

Original exception was:


$ python3.2 -c 'print((1, 2, 3))' > /dev/full
$

----------
nosy: +skrah

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


More information about the Python-bugs-list mailing list