Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

GH-102613: Fast recursive globbing in pathlib.Path.glob() #104512

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

Merged
merged 17 commits into from
Jun 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Drop test case that doesn't work on Windows.
`..` components are resolved lexically, rather than after symlinks.
  • Loading branch information
barneygale committed Jun 1, 2023
commit 4cfb83670d43ed62956c0c3b6c0473803a25993d
2 changes: 0 additions & 2 deletions 2 Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,6 @@ def _check(path, glob, expected):
_check(p, "dir*/*/**/", ["dirA/linkC", "dirA/linkC/linkD", "dirB/linkD", "dirC/dirD"])
_check(p, "dir*/*/**/..", ["dirA/linkC/..", "dirC/dirD/.."])
_check(p, "dir*/**/fileC", ["dirC/fileC"])
_check(p, "dir*/*/../**/fileC", ["dirA/linkC/../dirC/fileC", "dirC/dirD/../fileC"])
_check(p, "dir*/*/../dirD/**/", ["dirC/dirD/../dirD"])
_check(p, "*/dirD/**/", ["dirC/dirD"])

Expand All @@ -1930,7 +1929,6 @@ def _check(path, glob, expected):
_check(p, "dir*/*/**/", ["dirC/dirD"])
_check(p, "dir*/*/**/..", ["dirC/dirD/.."])
_check(p, "dir*/**/fileC", ["dirC/fileC"])
_check(p, "dir*/*/../**/fileC", ["dirC/dirD/../fileC"])
_check(p, "dir*/*/../dirD/**/", ["dirC/dirD/../dirD"])
_check(p, "*/dirD/**/", ["dirC/dirD"])

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.