Skip to content
Open
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
modify description of *other argument
  • Loading branch information
lvluling committed Feb 11, 2022
commit 09eece25b5e637d94abd83fe43b958e46f61807f
6 changes: 2 additions & 4 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,8 @@ Pure paths provide the following methods and properties:

Return the relative path to another path identified by *other*, each
element of *other* can be either a string representing a path segment,
an object implementing the :class:`os.PathLike` interface which returns
a string, or another path object implementing the :class:`PurePath` or
a subclass of :class:`PurePath`.
If the operation is impossible, ValueError is raised::
or another path object implementing the :class:`PurePath` ora subclass
of :class:`PurePath`. If the operation is impossible, ValueError is raised::

>>> p = PurePosixPath('/etc/passwd')
>>> p.relative_to('/')
Expand Down