Skip to content

[3.14] gh-74598: document that fnmatch.filterfalse is affected by cache limitation (GH-136781) #136782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-74598: document that fnmatch.filterfalse is affected by cache li…
…mitation (GH-136781)

(cherry picked from commit 263e451)

Co-authored-by: Gergely Elias <gergely.elias@gmail.com>
  • Loading branch information
gergely-elias authored and miss-islington committed Jul 19, 2025
commit f346ed2d086ba3a1649f8dc092b390c12b2e09af
2 changes: 1 addition & 1 deletion Doc/library/fnmatch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ a :class:`!str` filename, and vice-versa.

Finally, note that :func:`functools.lru_cache` with a *maxsize* of 32768
is used to cache the (typed) compiled regex patterns in the following
functions: :func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`.
functions: :func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`, :func:`.filterfalse`.


.. function:: fnmatch(name, pat)
Expand Down
Loading