diff options
author | andrei kulakov <andrei.avk@gmail.com> | 2021-07-15 10:53:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 10:53:26 (GMT) |
commit | b39eea06d148887dd91a3612febafbddda760593 (patch) | |
tree | b6fd78e7b77aa1cedb14ffe130ab955db0189912 /Doc/library/fnmatch.rst | |
parent | 3527569f1cd0df697242b68a8a837f08904872fe (diff) | |
download | cpython-b39eea06d148887dd91a3612febafbddda760593.zip cpython-b39eea06d148887dd91a3612febafbddda760593.tar.gz cpython-b39eea06d148887dd91a3612febafbddda760593.tar.bz2 |
bpo-42799: fnmatch module: bump up size of lru_cache for patterns (GH-27084)
Diffstat (limited to 'Doc/library/fnmatch.rst')
-rw-r--r-- | Doc/library/fnmatch.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst index 925f08e..9163da5 100644 --- a/Doc/library/fnmatch.rst +++ b/Doc/library/fnmatch.rst @@ -46,6 +46,9 @@ module. See module :mod:`glob` for pathname expansion (:mod:`glob` uses a period are not special for this module, and are matched by the ``*`` and ``?`` patterns. +Also note that :func:`functools.lru_cache` with the *maxsize* of 32768 is used to +cache the compiled regex patterns in the following functions: :func:`fnmatch`, +:func:`fnmatchcase`, :func:`filter`. .. function:: fnmatch(filename, pattern) |