Steve Dower added the comment:

Paths are processed by the Windows API. This processing includes (at least):

* resolve to current directory
* convert forward slashes to backslashes
* remove adjacent backslashes
* trim trailing dots and spaces from names
* resolve short path names

This processing can be skipped with the '\\?\' prefix, but in general it 
shouldn't be.

I would be okay with seeing this processing performed by pathlib so that 
str(Path("C:\\") / "test    ") == "C:\\test" (or maybe as part of .resolve() - 
there's another issue where we started discussing this), but I would be really 
hesitant to change ntpath to do it or detect it.

----------

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

Reply via email to