Eryk Sun <eryk...@gmail.com> added the comment:
> I'd say os.path.normpath() should perform the same (GetFullPathNameW?) > normalization as os.stat() and friends do. ntpath.abspath calls GetFullPathNameW (i.e. nt._getfullpathname) in Windows, but ntpath.normpath is pure Python. I agree that normpath should trim trailing spaces and dots from the last component. It should also normalize device paths and extended paths that start with "\\\\.\\" and "\\\\?\\". An extended path only skips normalization in an open or create context. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40238> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com