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

Tim Golden report at bugs.python.org
Fri Aug 26 21:17:35 CEST 2011


Tim Golden <mail at timgolden.me.uk> added the comment:

Obviously someone's code would break if it were relying on the Unix 
errno only in a Windows-only situation to determine the situation of 
opening a directory which isn't one. But that combination of events 
doesn't seem terribly likely.

Speaking for myself, since the exception is a WindowsError with the 
winerror attribute prominent, [Error 267] I'd be far more likely to be 
trapping that.

I say go ahead

----------

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


More information about the Python-bugs-list mailing list