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 eryksun
Recipients eryksun, gaborjbernat, laloch, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-04-10.13:57:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586527040.43.0.674700785863.issue40238@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
Date User Action Args
2020-04-10 13:57:20eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, gaborjbernat, laloch
2020-04-10 13:57:20eryksunsetmessageid: <1586527040.43.0.674700785863.issue40238@roundup.psfhosted.org>
2020-04-10 13:57:20eryksunlinkissue40238 messages
2020-04-10 13:57:20eryksuncreate