[issue28477] Add optional user argument to pathlib.Path.home()

2022-01-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue28477] Add optional user argument to pathlib.Path.home()

2016-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: pathlib.Path.home() don't support the user argument for reasons. The main problem is that os.path.expanduser() for other users is faked on Windows. It uses guessing, and perhaps it returns correct result in most cases. But in non-standard situations, if curr

[issue28477] Add optional user argument to pathlib.Path.home()

2016-10-19 Thread Josh Rosenberg
New submission from Josh Rosenberg: os.path.expanduser supports both '~' and '~username` constructs to get home directories. It seems reasonable for pathlib.Path.home to default to getting the current user's home directory, but support passing an argument to get the home directory for another