bpo-42998: add 'user' parameter to pathlib.Path.home() by barneygale · Pull Request #25271 · python/cpython
barneygale
changed the title
WIP: bpo-42998: add 'username' parameter to pathlib.Path.home()
WIP: bpo-42998: add 'user' parameter to pathlib.Path.home()
barneygale
changed the title
WIP: bpo-42998: add 'user' parameter to pathlib.Path.home()
bpo-42998: add 'user' parameter to pathlib.Path.home()
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()`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters