GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.11] GH-99334: Explain that `PurePath.is_relative_to()` is purely l… · python/cpython@20f3669

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Doc/library
    • pathlib.rst
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Doc/library/pathlib.rst‎

Copy file name to clipboardExpand all lines: Doc/library/pathlib.rst
+7Lines changed: 7 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 == p or u in p.parents
518+
False
519+
513520
.. versionadded:: 3.9
514521

515522

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.