Repository navigation
Commit 3c535a0
gh-139580: Clarify pathlib full_match recursive pattern docs (GH-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 2648604)
Co-authored-by: Harjoth Khara <harjoth.khara@gmail.com>
Co-authored-by: Terry J Reedy <tjreedy@udel.edu>
1 parent 5eed22f commit 3c535a0
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
603 | | - | |
604 | | - | |
605 | 603 | | |
606 | 604 | | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
607 | 620 | | |
608 | 621 | | |
609 | 622 | | |
| |||
1814 | 1827 | | |
1815 | 1828 | | |
1816 | 1829 | | |
| 1830 | + | |
| 1831 | + | |
1817 | 1832 | | |
1818 | 1833 | | |
1819 | 1834 | | |
| |||
0 commit comments