This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients
Date 2002-04-07.20:21:04
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=31435

I'm afraid there are no answers to your questions short of 
doing an exhaustive study of each implementation of 
interest, and even then it hits a brick wall because Win32 
CreateFile() doesn't document its error conditions and its 
source code is secret.

I'm attaching a patch that should reliably distinguish 
between mode and filename errors across Windows flavors 
under MSVC, and that maps EINVALID to ENOENT on Windows 
(which may not be the best that *could* be done on Win2K, 
but Windows flavors are inconsistent here and Python has no 
idea which flavor of Win32 it's running under).  If that's 
good enough for you, I'll check it in,; else I'm inclined 
to close this as 3rdParty and Won'tFix.
History
Date User Action Args
2007-08-23 14:00:21adminlinkissue538827 messages
2007-08-23 14:00:21admincreate