[New-bugs-announce] [issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`
Barney Gale
report at bugs.python.org
Sun Mar 8 00:06:12 EST 2020
New submission from Barney Gale <barney.gale at gmail.com>:
`pathlib.Path.expanduser()` does not call `os.path.expanduser()`, but instead re-implements it. The implementations look pretty similar and I can't see a good reason for the duplication. The only difference is that `pathlib.Path.expanduser()` raises `RuntimeError` when a home directory cannot be resolved, whereas `os.path.expanduser()` returns the path unchanged.
----------
components: Library (Lib)
messages: 363635
nosy: barneygale
priority: normal
severity: normal
status: open
title: `pathlib.Path.expanduser()` does not call `os.path.expanduser()`
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39899>
_______________________________________
More information about the New-bugs-announce
mailing list