Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3a61d24

Browse files
authored
GH-99334: Explain thatPurePath.is_relative_to() is purely lexical. (#114031)
1 parent9af9ac1 commit3a61d24

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎Doc/library/pathlib.rst‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,13 @@ Pure paths provide the following methods and properties:
515515
>>>p.is_relative_to('/usr')
516516
False
517517

518+
This method is string-based; it neither accesses the filesystem nor treats
519+
"``..``" segments specially. The following code is equivalent:
520+
521+
>>>u= PurePath('/usr')
522+
>>>u== por uin p.parents
523+
False
524+
518525
..versionadded::3.9
519526

520527
..deprecated-removed::3.12 3.14

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp