Steve Dower <steve.do...@python.org> added the comment:

Presumably this is linked to issue37515 (why not just repurpose that one?), but 
I'm inclined to think this is okay provided:

* if the operation succeeds, no error/message is displayed
* if the operation fails, we only update the error message if one of the 
special filenames is the target

So probably this ought to be a special case in 
PyErr_SetFromWindowsErrWithFilename(). And either we need to search the string 
for the special names or find an API that will clarify it (GetFileAttributes?).

I definitely do not want every error message suggesting that this edge case may 
be the cause, and I don't want to prevent people using these names or purpose 
for their actual uses.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37517>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to