]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-127381: pathlib ABCs: remove `JoinablePath.match()` (#129147)
authorBarney Gale <barney.gale@gmail.com>
Tue, 28 Jan 2025 20:22:55 +0000 (20:22 +0000)
committerGitHub <noreply@github.com>
Tue, 28 Jan 2025 20:22:55 +0000 (20:22 +0000)
commita4459c34ea4270311f0b7e22f1203af5ccc39875
tree1a328e5dc2f7c6a4c2ce12c939683d71d4559c9b
parentd23f5701ad2a64c7877bb37258420c417357423e
GH-127381: pathlib ABCs: remove `JoinablePath.match()` (#129147)

Unlike `ReadablePath.[r]glob()` and `JoinablePath.full_match()`, the
`JoinablePath.match()` method doesn't support the recursive wildcard `**`,
and matches from the right when a fully relative pattern is given. These
quirks means its probably unsuitable for inclusion in the pathlib ABCs,
especially given `full_match()` handles the same use case.
Lib/pathlib/_abc.py
Lib/pathlib/_local.py
Lib/test/test_pathlib/test_pathlib.py
Lib/test/test_pathlib/test_pathlib_abc.py