File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -708,6 +708,10 @@ call fails (for example because the path doesn't exist).
708
708
>>> Path.home()
709
709
PosixPath('/home/antoine')
710
710
711
+ Note that unlike :func: `os.path.expanduser `, on POSIX systems a
712
+ :exc: `KeyError ` or :exc: `RuntimeError ` will be raised, and on Windows systems a
713
+ :exc: `RuntimeError ` will be raised if home directory can't be resolved.
714
+
711
715
.. versionadded :: 3.5
712
716
713
717
@@ -764,6 +768,10 @@ call fails (for example because the path doesn't exist).
764
768
>>> p.expanduser()
765
769
PosixPath('/home/eric/films/Monty Python')
766
770
771
+ Note that unlike :func: `os.path.expanduser `, on POSIX systems a
772
+ :exc: `KeyError ` or :exc: `RuntimeError ` will be raised, and on Windows systems a
773
+ :exc: `RuntimeError ` will be raised if home directory can't be resolved.
774
+
767
775
.. versionadded :: 3.5
768
776
769
777
You can’t perform that action at this time.
0 commit comments