]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-127381: pathlib ABCs: remove `ReadablePath.exists()` and `is_*()` (#130520)
authorBarney Gale <barney.gale@gmail.com>
Sat, 1 Mar 2025 21:24:19 +0000 (21:24 +0000)
committerGitHub <noreply@github.com>
Sat, 1 Mar 2025 21:24:19 +0000 (21:24 +0000)
commita55dffd66dbddfd50c8f3de195218d041d26bd3c
tree264613f1c368daaf43ae5aec939ec5e56ae32f9f
parent5181ddb29f969c1718f3f4f9618c260807b2886c
GH-127381: pathlib ABCs: remove `ReadablePath.exists()` and `is_*()` (#130520)

Remove `ReadablePath` methods duplicated by `ReadablePath.info`. To be
specific, we remove `exists()`, `is_dir()`, `is_file()` and `is_symlink()`.

The public `Path` class retains these methods.
Lib/pathlib/_abc.py
Lib/test/test_pathlib/test_pathlib.py
Lib/test/test_pathlib/test_pathlib_abc.py