Skip to content

Commit 22be3a6

Browse files
committed
Add whatsnew entry; fix news typo.
1 parent d1a1716 commit 22be3a6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Doc/whatsnew/3.13.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ built on debug mode <debug-build>`.
106106
pathlib
107107
-------
108108

109+
* :meth:`pathlib.Path.glob` and :meth:`~pathlib.Path.rglob` now match files
110+
and directories when expanding a pattern that ends with "``**``". In
111+
earlier Python releases, patterns with this ending match only directories.
112+
(Contributed by Barney Gale in :gh:`70303`.)
113+
109114
* Add support for recursive wildcards in :meth:`pathlib.PurePath.match`.
110115
(Contributed by Barney Gale in :gh:`73435`.)
111116

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
:meth:`pathlib.Path.glob` and :meth:`~pathlib.Path.rglob` now yield files and
2-
directories when expanding a pattern that ends with "``**``". In a earlier
2+
directories when expanding a pattern that ends with "``**``". In earlier
33
Python releases, patterns with this ending match only directories.

0 commit comments

Comments
 (0)