https://github.com/python/cpython/commit/f5cbed1114cae19744a9f9a460154322688b6318
commit: f5cbed1114cae19744a9f9a460154322688b6318
branch: 3.11
author: Barney Gale <[email protected]>
committer: barneygale <[email protected]>
date: 2024-01-16T01:37:55Z
summary:
[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.
files:
M Doc/library/pathlib.rst
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index 974ab424a57f54..2d35285c12bd31 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -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.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]