Author barneygale
Recipients barneygale, serhiy.storchaka
Date 2020-03-08.11:18:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583666305.76.0.816159065635.issue39899@roundup.psfhosted.org>
In-reply-to
Content
The only design flaw mentioned in that thread is that `os.path.expanduser()` returns the input unchanged if expansion fails, which is not very pythonic. However, such a problem doesn't necessitate a rewrite of `os.path.expanduser()`. Checking `result[:1]` is enough.

I think there's also a difference in the Windows heuristic in that pathlib checks whether `basename(%HOMEPATH%) == %USERNAME%` whereas `ntpath.expanduser` doesn't. But if that's really an issue it should probably be fixed in `ntpath` IMO, rather than having divergent implementations.
History
Date User Action Args
2020-03-08 11:18:25barneygalesetrecipients: + barneygale, serhiy.storchaka
2020-03-08 11:18:25barneygalesetmessageid: <1583666305.76.0.816159065635.issue39899@roundup.psfhosted.org>
2020-03-08 11:18:25barneygalelinkissue39899 messages
2020-03-08 11:18:25barneygalecreate