GH-73435: Implement recursive wildcards in `pathlib.PurePath.match()` by barneygale · Pull Request #101398 · python/cpython · GitHub

github.com

Tin mới

barneygale:gh-73435-pathlib-match-recursive

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Support recursive wildcards in pathlib.PurePath.match() #73435

: Implement recursive wildcards in pathlib.PurePath.mat…

pathlib.PureWindowsPath.match() mishandles path anchors #101360

Simplify code slightly

Fix support for newlines

Cache translation of individual components

Drop 'recursive' argument, make this the only behaviour.

Undo modifications to fnmatch.py

Merge branch 'main' into

Fix Windows support

Merge branch 'main' into

Path.rglob performance issues in deeply nested directories compared to glob.glob(recursive=True) #102613

GH-77609: Add follow_symlinks argument to pathlib.Path.glob() #102616

'*' matches entire path in fnmatch #72904

Merge branch 'main' into

Merge branch 'main' into

Simplify patch; prepare for use in glob()

Make better use of path object caching.

Add performance tip to docs

Skip re-initialisation of PurePath patterns.

Merge branch 'main' into

Merge branch 'main' into

Use re.IGNORECASE rather than os.path.normcase()

Explain _FNMATCH_SLICE

Accidentally a word.

Cache pattern compilation

Remove unneeded from None suffix, whoops.

Tiny performance improvement: avoid accessing path.parts

Avoid hashing path object when compiling pattern.

More performance tweaks