STINNER Victor <victor.stin...@haypocalc.com> added the comment: _Py_fopen() returns NULL without raising an exception if fopen() fails.
Attached patch raises a OSError if fopen() if errno is different than ENOENT. I don't know if ENOENT is the right error number on Windows. Should we ignore more error numbers, like EACCESS? ---------- keywords: +patch nosy: +haypo Added file: http://bugs.python.org/file23421/fopen_err.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13192> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com