[issue15948] Unchecked return value of I/O functions
Christian Heimes
report at bugs.python.org
Wed Oct 24 11:55:38 CEST 2012
Christian Heimes added the comment:
The functions should set an appropriate errno so it's PyErr_SetFromErrno(PyExc_IOError). You should use the PyErr_SetFromErrnoWithFilename*() variants when a file name (PyObject*, char*, unicode) is available.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15948>
_______________________________________
More information about the Python-bugs-list
mailing list