Repository navigation
Commit 0e1dac2
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 4250c67 commit 0e1dac2
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
590 | | - | |
591 | 589 | | |
592 | 590 | | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
593 | 606 | | |
594 | 607 | | |
595 | 608 | | |
| |||
1810 | 1823 | | |
1811 | 1824 | | |
1812 | 1825 | | |
| 1826 | + | |
| 1827 | + | |
1813 | 1828 | | |
1814 | 1829 | | |
1815 | 1830 | | |
| |||
0 commit comments