Skip to content

Conversation

@barneygale
Copy link
Contributor

@barneygalebarneygale 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.
@barneygalebarneygale merged commit 12b4f1a into python:mainDec 11, 2024
32 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 freeto 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

@barneygale