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

Commit20f3669

Browse files
authored
[3.11]GH-99334: Explain thatPurePath.is_relative_to() is purely lexical. (GH-114031) (#114461)
(cherry picked from commit3a61d24)
1 parentdcda3aa commit20f3669

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
@@ -510,6 +510,13 @@ Pure paths provide the following methods and properties:
510510

511511
If multiple arguments are supplied, they are joined together.
512512

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== por uin p.parents
518+
False
519+
513520
..versionadded::3.9
514521

515522

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp