Message363652
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. |
|
Date |
User |
Action |
Args |
2020-03-08 11:18:25 | barneygale | set | recipients:
+ barneygale, serhiy.storchaka |
2020-03-08 11:18:25 | barneygale | set | messageid: <1583666305.76.0.816159065635.issue39899@roundup.psfhosted.org> |
2020-03-08 11:18:25 | barneygale | link | issue39899 messages |
2020-03-08 11:18:25 | barneygale | create | |
|