➜

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 barneygale, eryksun, terry.reedy
Date 2021-06-14.03:35:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623641712.7.0.208050759893.issue44316@roundup.psfhosted.org>
In-reply-to
Content
I think separate keep_curdir and keep_pardir options is over-complicating the signature. Also, I'd prefer to remove a dot component if it's not the first component since there's no reason to keep it.

If you plan to use normpath() in pathlib, then the case for special_prefixes in ntpath.normpath() should be removed. Actually, it never should have been added. IIRC it was added as a workaround for a buggy implementation that's no longer an issue. Only \\?\ is special, and that's only when opening/accessing a path. It's not special in GetFullPathNameW(), as is called by ntpath.abspath() in Windows. This needlessly introduces inconsistency for ntpath.abspath() calls in Windows vs Unix.
History
Date User Action Args
2021-06-14 03:35:12eryksunsetrecipients: + eryksun, terry.reedy, barneygale
2021-06-14 03:35:12eryksunsetmessageid: <1623641712.7.0.208050759893.issue44316@roundup.psfhosted.org>
2021-06-14 03:35:12eryksunlinkissue44316 messages
2021-06-14 03:35:12eryksuncreate