-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-73435: Implement recursive wildcards in pathlib.PurePath.match()
#101398
Merged
barneygale
merged 40 commits into
python:main
from
barneygale:gh-73435-pathlib-match-recursive
May 30, 2023
Merged
GH-73435: Implement recursive wildcards in pathlib.PurePath.match()
#101398
barneygale
merged 40 commits into
python:main
from
barneygale:gh-73435-pathlib-match-recursive
May 30, 2023
Commits on Jan 28, 2023
-
pythongh-73435: Implement recursive wildcards in pathlib.PurePath.mat…
…ch() Add a new *recursive* argument to `pathlib.PurePath.match()`, defaulting to `False`. If set to true, `match()` handles the `**` wildcard as in `Path.glob()`, i.e. it matches any number of path segments. We now compile a `re.Pattern` object for the entire pattern. This is made more difficult by `fnmatch` not treating directory separators as special when evaluating wildcards (`*`, `?`, etc), and so we arrange the path parts onto separate *lines* in a string, and ensure we don't set `re.DOTALL`.
Configuration menu - View commit details
-
Copy full SHA for 608e917 - Browse repository at this point
Copy the full SHA 608e917View commit details
Commits on Jan 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9a43c7f - Browse repository at this point
Copy the full SHA 9a43c7fView commit details
Commits on Feb 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a846279 - Browse repository at this point
Copy the full SHA a846279View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbd8cd6 - Browse repository at this point
Copy the full SHA bbd8cd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5c002e - Browse repository at this point
Copy the full SHA b5c002eView commit details
Commits on Feb 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0afcd54 - Browse repository at this point
Copy the full SHA 0afcd54View commit details
Commits on Feb 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fe32717 - Browse repository at this point
Copy the full SHA fe32717View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b6f850 - Browse repository at this point
Copy the full SHA 7b6f850View commit details -
Configuration menu - View commit details
-
Copy full SHA for 037488a - Browse repository at this point
Copy the full SHA 037488aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0741950 - Browse repository at this point
Copy the full SHA 0741950View commit details
Commits on Feb 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e1c9731 - Browse repository at this point
Copy the full SHA e1c9731View commit details
Commits on Apr 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for db6f0ad - Browse repository at this point
Copy the full SHA db6f0adView commit details
Commits on Apr 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8dff9e2 - Browse repository at this point
Copy the full SHA 8dff9e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 314679f - Browse repository at this point
Copy the full SHA 314679fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 90eebcc - Browse repository at this point
Copy the full SHA 90eebccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b5fffd - Browse repository at this point
Copy the full SHA 4b5fffdView commit details
Commits on Apr 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5e8bc28 - Browse repository at this point
Copy the full SHA 5e8bc28View commit details
Commits on Apr 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e81ab5a - Browse repository at this point
Copy the full SHA e81ab5aView commit details
Commits on May 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for afb8047 - Browse repository at this point
Copy the full SHA afb8047View commit details -
Configuration menu - View commit details
-
Copy full SHA for 722a1ab - Browse repository at this point
Copy the full SHA 722a1abView commit details
Commits on May 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0ccf3df - Browse repository at this point
Copy the full SHA 0ccf3dfView commit details
Commits on May 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ccea5e1 - Browse repository at this point
Copy the full SHA ccea5e1View commit details -
Co-authored-by: Hugo van Kemenade <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dd04294 - Browse repository at this point
Copy the full SHA dd04294View commit details
Commits on May 14, 2023
-
Apply suggestions from code review
Co-authored-by: Alex Waygood <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b258641 - Browse repository at this point
Copy the full SHA b258641View commit details -
Configuration menu - View commit details
-
Copy full SHA for ced8998 - Browse repository at this point
Copy the full SHA ced8998View commit details -
Configuration menu - View commit details
-
Copy full SHA for a33c7b6 - Browse repository at this point
Copy the full SHA a33c7b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b3bddb - Browse repository at this point
Copy the full SHA 4b3bddbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ad30dd - Browse repository at this point
Copy the full SHA 6ad30ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 052890f - Browse repository at this point
Copy the full SHA 052890fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d789b6d - Browse repository at this point
Copy the full SHA d789b6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fe77c6 - Browse repository at this point
Copy the full SHA 4fe77c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4770c13 - Browse repository at this point
Copy the full SHA 4770c13View commit details
Commits on May 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 559787d - Browse repository at this point
Copy the full SHA 559787dView commit details
Commits on May 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9c09fc4 - Browse repository at this point
Copy the full SHA 9c09fc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb35dbc - Browse repository at this point
Copy the full SHA eb35dbcView commit details
Commits on May 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8959dfd - Browse repository at this point
Copy the full SHA 8959dfdView commit details
Commits on May 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fec7702 - Browse repository at this point
Copy the full SHA fec7702View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89bc380 - Browse repository at this point
Copy the full SHA 89bc380View commit details
Commits on May 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9211297 - Browse repository at this point
Copy the full SHA 9211297View commit details -
Co-authored-by: Alex Waygood <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 73bb309 - Browse repository at this point
Copy the full SHA 73bb309View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.