Skip to content

[3.14] gh-139580: Clarify pathlib full_match recursive pattern docs (GH-151479) - #159956

Merged
terryjreedy merged 1 commit into
python:3.14from
miss-islington:backport-2648604-3.14
Oct 20, 2026
Merged

terryjreedy merged 1 commit into
python:3.14from
miss-islington:backport-2648604-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Documents how PurePath.full_match() handles a pattern ending in /: /a/ matches /a/b but not /a, because the separator before ** must be present in the path and PurePath drops trailing slashes. Adds two doctest examples under full_match() and a note at the ** entry of the pattern language list contrasting it with Path.glob().

(cherry picked from commit 2648604)

Co-authored-by: Harjoth Khara [email protected]
Co-authored-by: Terry J Reedy [email protected]

…ythonGH-151479)

Documents how PurePath.full_match() handles a pattern ending in /**: /a/** matches /a/b but not /a, because the separator before ** must be present in the path and PurePath drops trailing slashes. Adds two doctest examples under full_match() and a note at the ** entry of the pattern language list contrasting it with Path.glob().
---------
(cherry picked from commit 264860472c1ec9446974c6c235b26c1774cec75d)

Co-authored-by: Harjoth Khara <[email protected]>
Co-authored-by: Terry J Reedy <[email protected]>
@terryjreedy
terryjreedy enabled auto-merge (squash) October 20, 2026 19:43
@terryjreedy
terryjreedy merged commit 3c535a0 into python:3.14 Oct 20, 2026
41 of 42 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Oct 20, 2026
@miss-islington
miss-islington deleted the backport-2648604-3.14 branch October 20, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants