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

GH-127381: pathlib ABCs: remove `JoinablePath.match()` by barneygale · Pull Request #129147 · python/cpython · GitHub

/ cpython Public

GH-127381: pathlib ABCs: remove JoinablePath.match() - #129147

Merged
barneygale merged 1 commit into
python:mainfrom
barneygale:gh-127381-match
Jan 28, 2025
Merged

GH-127381: pathlib ABCs: remove JoinablePath.match()#129147
barneygale merged 1 commit into
python:mainfrom
barneygale:gh-127381-match

Conversation

barneygale commented Jan 21, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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.

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.
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