diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 2d35285c12bd31..283e324a7f1b05 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -510,6 +510,13 @@ Pure paths provide the following methods and properties: If multiple arguments are supplied, they are joined together. + This method is string-based; it neither accesses the filesystem nor treats + "``..``" segments specially. The following code is equivalent: + + >>> u = PurePath('/usr') + >>> u == p or u in p.parents + False + .. versionadded:: 3.9