Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Dec 6, 2024

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 barneygale merged commit 12b4f1a into python:main Dec 11, 2024
36 checks passed
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.
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