Message100939
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... |
|
Date |
User |
Action |
Args |
2010-03-12 16:08:39 | vstinner | set | recipients:
+ vstinner |
2010-03-12 16:08:39 | vstinner | set | messageid: <1268410119.59.0.322464622688.issue8124@psf.upfronthosting.co.za> |
2010-03-12 16:08:37 | vstinner | link | issue8124 messages |
2010-03-12 16:08:37 | vstinner | create | |
|