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

Commita199ab3

Browse files
[3.12]GH-99334: Explain thatPurePath.is_relative_to() is purely lexical. (GH-114031) (#114460)
(cherry picked from commit3a61d24)
1 parent536b66f commita199ab3

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
@@ -509,6 +509,13 @@ Pure paths provide the following methods and properties:
509509
>>>p.is_relative_to('/usr')
510510
False
511511

512+
This method is string-based; it neither accesses the filesystem nor treats
513+
"``..``" segments specially. The following code is equivalent:
514+
515+
>>>u= PurePath('/usr')
516+
>>>u== por uin p.parents
517+
False
518+
512519
..versionadded::3.9
513520

514521
..deprecated-removed::3.12 3.14

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp