This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: I/O error during one-liner gives bad diagnostic (and fails to return OS error status)
Type: behavior Stage:
Components: Interpreter Core Versions: Python 2.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: stdout error at interpreter shutdown fails to return OS error status
View: 5319
Assigned To: Nosy List: georg.brandl, mkc
Priority: normal Keywords:

Created on 2009-02-19 17:45 by mkc, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg82485 - (view) Author: Mike Coleman (mkc) Date: 2009-02-19 17:45
$ python2.6 -c 'print 1, 2, 3' > /dev/full || echo error status
close failed in file object destructor:
Error in sys.excepthook:

Original exception was:
$

It seems like something other than blank lines should be printed here.
msg82487 - (view) Author: Mike Coleman (mkc) Date: 2009-02-19 17:52
Also, as with the other python versions, notice that the error status is
EXIT_SUCCESS (which it should not be).
msg112343 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-08-01 15:07
I think this can be merged with #5319.
History
Date User Action Args
2022-04-11 14:56:45adminsetgithub: 49570
2010-08-01 15:07:10georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg112343

superseder: stdout error at interpreter shutdown fails to return OS error status
resolution: duplicate
2009-02-19 17:52:12mkcsetmessages: + msg82487
2009-02-19 17:45:14mkccreate