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.

Author vstinner
Recipients vstinner
Date 2010-03-12.16:08:37
SpamBayes Score 7.762159e-06
Marked as misclassified No
Message-id <1268410119.59.0.322464622688.issue8124@psf.upfronthosting.co.za>
In-reply-to
Content
PyFile_WriteString() calls PyObject_Str() which calls PyErr_CheckSignals(). If a signal was catched, the signal handler is called. If the signal handler raises an error, PyObject_Str() and then PyFile_WriteString() return NULL.

mywrite() ignores all PyFile_WriteString() errors. It should maybe only ignores errors from the file (except IOError: ...) and not any error.

Another problem: mywrite() is called from PySys_WriteStdout() and PySys_WriteStderr() which are procedures. PySys_WriteStdout()/PySys_WriteStderr() caller cannot detect the error. There are 65 calls to PySys_WriteStd...
History
Date User Action Args
2010-03-12 16:08:39vstinnersetrecipients: + vstinner
2010-03-12 16:08:39vstinnersetmessageid: <1268410119.59.0.322464622688.issue8124@psf.upfronthosting.co.za>
2010-03-12 16:08:37vstinnerlinkissue8124 messages
2010-03-12 16:08:37vstinnercreate