We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PurePath.is_relative_to()
1 parent dcda3aa commit 87b8cccCopy full SHA for 87b8ccc
1 file changed
Doc/library/pathlib.rst
@@ -510,6 +510,13 @@ Pure paths provide the following methods and properties:
510
511
If multiple arguments are supplied, they are joined together.
512
513
+ This method is string-based; it neither accesses the filesystem nor treats
514
+ "``..``" segments specially. The following code is equivalent:
515
+
516
+ >>> u = PurePath('/usr')
517
+ >>> u == p or u in p.parents
518
+ False
519
520
.. versionadded:: 3.9
521
522
0 commit comments