Antoine Pitrou <pit...@free.fr> 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.
It seems so. > Should we ignore more error numbers, like EACCESS? I suggest also ignoring ENOTDIR and EISDIR. Not sure about EACCES. ---------- _______________________________________ 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