Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,13 @@ Pure paths provide the following methods and properties:
>>> p.is_relative_to('/usr')
False

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

.. deprecated-removed:: 3.12 3.14
Expand Down