Skip to content

Commit

Permalink
[3.11] pythonGH-101130: Document multiple arguments for `PurePath.[is…
Browse files Browse the repository at this point in the history
…_]relative_to()` (python#114034)

3.11-only change as this is already covered in the 3.12+ deprecation
warning.
  • Loading branch information
barneygale authored Jan 16, 2024
1 parent 76433f8 commit f5cbed1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,8 @@ Pure paths provide the following methods and properties:
>>> p.is_relative_to('/usr')
False

If multiple arguments are supplied, they are joined together.

.. versionadded:: 3.9


Expand Down Expand Up @@ -589,6 +591,8 @@ Pure paths provide the following methods and properties:
.format(str(self), str(formatted)))
ValueError: '/etc/passwd' is not in the subpath of '/usr' OR one path is relative and the other absolute.

If multiple arguments are supplied, they are joined together.

NOTE: This function is part of :class:`PurePath` and works with strings. It does not check or access the underlying file structure.


Expand Down

0 comments on commit f5cbed1

Please sign in to comment.