[issue13192] ImportError silences low-level OS errors
Antoine Pitrou
report at bugs.python.org
Sun Oct 16 23:19:14 CEST 2011
Antoine Pitrou <pitrou at 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 <report at bugs.python.org>
<http://bugs.python.org/issue13192>
_______________________________________
More information about the Python-bugs-list
mailing list