]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] GH-101130: Document multiple arguments for `PurePath.[is_]relative_to()` ...
authorBarney Gale <barney.gale@gmail.com>
Tue, 16 Jan 2024 01:37:55 +0000 (01:37 +0000)
committerGitHub <noreply@github.com>
Tue, 16 Jan 2024 01:37:55 +0000 (01:37 +0000)
3.11-only change as this is already covered in the 3.12+ deprecation
warning.

Doc/library/pathlib.rst

index 974ab424a57f5402fe67a9b39441a8dc8820e8a5..2d35285c12bd310615579f8bd68ce9d545f131cf 100644 (file)
@@ -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
 
 
@@ -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.