Skip to content

Commit 93db6c4

Browse files
kovanclaude
andcommitted
gh-140922: Document fnmatch.translate \Z to \z change in 3.14
Add versionchanged note explaining that fnmatch.translate() now generates regular expressions using \z instead of \Z. Both are equivalent; \Z is still accepted for compatibility. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7e2c9bd commit 93db6c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/fnmatch.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ functions: :func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`, :func:`.filter
116116
>>> reobj.match('foobar.txt')
117117
<re.Match object; span=(0, 10), match='foobar.txt'>
118118

119+
.. versionchanged:: 3.14
120+
The generated regular expression now uses ``\z`` instead of ``\Z``.
121+
Both are equivalent; ``\Z`` is still accepted for compatibility.
122+
119123

120124
.. seealso::
121125

0 commit comments

Comments
 (0)