FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-127381: pathlib ABCs: remove `PathBase.samefile()` and rarer `is_*()` by barneygale · Pull Request #127709 · python/cpython · GitHub

/ cpython Public

GH-127381: pathlib ABCs: remove PathBase.samefile() and rarer is_*() - #127709

Merged
barneygale merged 5 commits into
python:mainfrom
barneygale:gh-127381-samefile
Dec 11, 2024
Merged

GH-127381: pathlib ABCs: remove PathBase.samefile() and rarer is_*()#127709
barneygale merged 5 commits into
python:mainfrom
barneygale:gh-127381-samefile

Conversation

barneygale commented Dec 6, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Remove PathBase.samefile(), which is fairly specific to the local FS, and relies on stat(), which we're aiming to remove from PathBase.

Also remove PathBase.is_mount(), is_junction(), is_block_device(), is_char_device(), is_fifo() and is_socket(). These rely on stat fields and POSIX file type numbers that we're aiming to remove from the PathBase API.

… `is_*()`

Remove `PathBase.samefile()`, which is fairly specific to the local FS, and
relies on `stat()`, which we're aiming to remove from `PathBase`.

Also remove `PathBase.is_mount()`, `is_junction()`, `is_block_device()`,
`is_char_device()`, `is_fifo()` and `is_socket()`. These rely on POSIX
file type numbers that we're aiming to remove from the `PathBase` API.
barneygale merged commit 12b4f1a into python:main Dec 11, 2024
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
… `is_*()` (python#127709)

Remove `PathBase.samefile()`, which is fairly specific to the local FS, and
relies on `stat()`, which we're aiming to remove from `PathBase`.

Also remove `PathBase.is_mount()`, `is_junction()`, `is_block_device()`,
`is_char_device()`, `is_fifo()` and `is_socket()`. These rely on POSIX
file type numbers that we're aiming to remove from the `PathBase` API.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL