◐ Shell
clean mode source ↗

bpo-42998: add 'user' parameter to pathlib.Path.home() by barneygale · Pull Request #25271 · python/cpython

@barneygale barneygale changed the title WIP: bpo-42998: add 'username' parameter to pathlib.Path.home() WIP: bpo-42998: add 'user' parameter to pathlib.Path.home()

Apr 8, 2021

@barneygale barneygale changed the title WIP: bpo-42998: add 'user' parameter to pathlib.Path.home() bpo-42998: add 'user' parameter to pathlib.Path.home()

Apr 8, 2021
Slightly re-arrange the internals such that `expanduser()` calls `home()`.
This is to aid with the creation of an `AbstractPath` class in bpo-24132,
where `cwd()` and `home()` will be abstract methods, but not `absolute()`
or `expanduser()`.