[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

Antoine Pitrou report at bugs.python.org
Fri Aug 26 21:01:18 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> I could see how they'd use EINVAL, but to me ENOTDIR makes more sense
> here. However, I'm not sure if anyone is depending on this (or what
> they could depend on it for).

Right now I'm not sure, but if PEP 3151 is accepted it will make much
more sense to get a NotADirectoryError.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12802>
_______________________________________


More information about the Python-bugs-list mailing list