8000 [3.9] bpo-41082: Add note on errors that may be raised by home() and expanduser() by akulakov · Pull Request #28186 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.9] bpo-41082: Add note on errors that may be raised by home() and expanduser() #28186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix wording
  • Loading branch information
akulakov committed Sep 6, 2021
commit 7557f6da271c36a989b0651308ba9529d30dfdeb
4 changes: 2 additions & 2 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ call fails (for example because the path doesn't exist).
PosixPath('/home/antoine')

Note that unlike :func:`os.path.expanduser`, on Posix systems a
:exc:`KeyError` may be raised, and on Windows systems a :exc:`RuntimeError`
:exc:`KeyError` will be raised, and on Windows systems a :exc:`RuntimeError`
will be raised if home directory can't be resolved.

.. versionadded:: 3.5
Expand Down Expand Up @@ -769,7 +769,7 @@ call fails (for example because the path doesn't exist).
PosixPath('/home/eric/films/Monty Python')

Note that unlike :func:`os.path.expanduser`, on Posix systems a
:exc:`KeyError` may be raised, and on Windows systems a :exc:`RuntimeError`
:exc:`KeyError` will be raised, and on Windows systems a :exc:`RuntimeError`
will be raised if home directory can't be resolved.

.. versionadded:: 3.5
Expand Down
0