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 — pathlib ABCs: prune PathBase interface · Issue #127381 · python/cpython

pathlib ABCs: prune PathBase interface #127381

New issue
Copy link
New issue
Copy link
Closed
Closed
pathlib ABCs: prune PathBase interface#127381
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlib

Description

@barneygale
barneygale
opened on Nov 29, 2024
Issue body actions

It's time to make some difficult decisions about which methods deserve to stay in the pathlib._abc.PathBase interface, and which ought to be made pathlib.Path-only. Guidelines:

  • Compare to zipfile.Path and os.DirEntry; don't evict shared methods.
  • Include abstract methods only for the most basic functionality common to all virtual filesystems
  • Include concrete methods only when they combine abstract methods to produce widely useful functionality

Linked PRs

  • GH-127381: pathlib ABCs: remove PathBase.lstat() #127382
  • GH-127381: pathlib ABCs: remove PathBase.cwd() and home() #127427
  • GH-127381: pathlib ABCs: remove PathBase.rename() and replace() #127658
  • GH-127381: pathlib ABCs: remove PathBase.resolve() and absolute() #127707
  • GH-127381: pathlib ABCs: remove PathBase.unlink() and rmdir() #127736
  • GH-127381: pathlib ABCs: remove PathBase.samefile() and rarer is_*() #127709
  • GH-127381: pathlib ABCs: remove remaining uncommon PathBase methods #127714
  • GH-127381: pathlib ABCs: remove uncommon PurePathBase methods #127853
  • GH-127381: pathlib ABCs: remove PathBase.stat() #128334
  • GH-127381: pathlib ABCs: remove PathBase.move() and move_into() #128337
  • GH-127381: pathlib ABCs: remove JoinablePath.match() #129147
  • GH-127381: pathlib ABCs: remove ReadablePath.rglob() #130207
  • GH-127381: pathlib ABCs: remove ReadablePath.exists() and is_*() #130520
  • GH-127381: pathlib ABCs: remove WritablePath.mkdir() arguments #130611
  • GH-127381: pathlib ABCs: remove case_sensitive argument #131024
Reacted by Andreas Poehlmann

Activity

Next
  1. barneygale
    added
    topic-pathlib
    type-featureA feature request or enhancementA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    and removed
    type-featureA feature request or enhancementA feature request or enhancement
    on Nov 29, 2024
  2. barneygale
    added 5 commits that reference this issue on Nov 29, 2024

    pythonGH-127381: pathlib ABCs: remove `PathBase.lstat()`

    9db3241

    Merge branch 'main' into pythongh-127381-lstat

    06356c0

    GH-127381: pathlib ABCs: remove `PathBase.lstat()` (#127382)

    38264a0

    pythonGH-127381: pathlib ABCs: remove `PathBase.cwd()` and `home()`

    19f52a7

    GH-127381: pathlib ABCs: remove `PathBase.cwd()` and `home()` (#127427)

    328187c
  3. picnixz
    added 2 commits that reference this issue on Dec 2, 2024

    pythonGH-127381: pathlib ABCs: remove `PathBase.lstat()` (python#127382)

    73f0306

    pythonGH-127381: pathlib ABCs: remove `PathBase.cwd()` and `home()` (p…

    9a244eb
  4. barneygale
    added 4 commits that reference this issue on Dec 5, 2024

    pythonGH-127381: pathlib ABCs: remove `PathBase.rename()` and `replac…

    55bb68b

    GH-127381: pathlib ABCs: remove `PathBase.rename()` and `replace()` (#…

    5b6635f

    pythonGH-127381: pathlib ABCs: remove `PathBase.resolve()` and `absol…

    7332eb3

    pythonGH-127381: pathlib ABCs: remove `PathBase.samefile()` and rarer…

    1e09d70
  5. 39 remaining items

  6. barneygale
    added a commit that references this issue on Feb 16, 2025

    pythonGH-127381: pathlib ABCs: remove `ReadablePath.rglob()`

    f08e172
  7. barneygale commented on Feb 16, 2025

    @barneygale
    barneygale
    on Feb 16, 2025
    ContributorAuthor
    More actions

    Once more with feeling...

  8. barneygale
    reopened this on Feb 16, 2025
  9. barneygale
    added a commit that references this issue on Feb 17, 2025

    GH-127381: pathlib ABCs: remove `ReadablePath.rglob()` (#130207)

    6f07016
  10. barneygale
    added 6 commits that reference this issue on Feb 24, 2025

    pythonGH-127381: pathlib ABCs: remove `ReadablePath.exists()` and `is…

    5ec5b14

    Merge branch 'main' into pythongh-127381-exists

    2b58966

    pythonGH-127381: pathlib ABCs: remove `WritablePath.mkdir()` arguments

    829c260

    Merge branch 'main' into pythongh-127381-prune-mkdir-args

    c012f74

    GH-127381: pathlib ABCs: remove `ReadablePath.exists()` and `is_*()` (#…

    a55dffd

    GH-127381: pathlib ABCs: remove `WritablePath.mkdir()` arguments (#13…

    c9932a9
  11. barneygale
    closed this as completedon Mar 1, 2025
  12. barneygale
    added a commit that references this issue on Mar 9, 2025

    pythonGH-127381: pathlib ABCs: remove `case_sensitive` argument

    08dd9b9
  13. barneygale
    reopened this on Mar 9, 2025
  14. barneygale
    added a commit that references this issue on Mar 10, 2025

    GH-127381: pathlib ABCs: remove `case_sensitive` argument (#131024)

    93fc3d3
  15. barneygale
    closed this as completedon Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlib

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — 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.