Skip to content

Commit f5cbed1

Browse files
authored
[3.11] GH-101130: Document multiple arguments for PurePath.[is_]relative_to() (#114034)
3.11-only change as this is already covered in the 3.12+ deprecation warning.
1 parent 76433f8 commit f5cbed1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/pathlib.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,8 @@ Pure paths provide the following methods and properties:
508508
>>> p.is_relative_to('/usr')
509509
False
510510

511+
If multiple arguments are supplied, they are joined together.
512+
511513
.. versionadded:: 3.9
512514

513515

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

594+
If multiple arguments are supplied, they are joined together.
595+
592596
NOTE: This function is part of :class:`PurePath` and works with strings. It does not check or access the underlying file structure.
593597

594598

0 commit comments

Comments
 (0)