[New-bugs-announce] [issue41082] Error handling and documentation of Path.home()

Tim Hoffmann report at bugs.python.org
Mon Jun 22 17:13:41 EDT 2020

New submission from Tim Hoffmann <tim.hoffmann at posteo.de>:

Path.home() may fail un

1. I think the raised key error is too low-level, and it should be something else; what exactly t.b.d.
2. The documentation (https://docs.python.org/3/library/pathlib.html#pathlib.Path.home) should specify what happens in case of failure.
3. The documentation links to https://docs.python.org/3/library/os.path.html#os.path.expanduser, but that's not correct. _PosixFlavor.gethomedir() implements it's own user lookup, which is slightly different from os.path.expanduser()

components: Library (Lib)
messages: 372116
nosy: timhoffm
priority: normal
severity: normal
status: open
title: Error handling and documentation of Path.home()
type: behavior

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list