diff options
author | Raymond Hettinger <python@rcn.com> | 2010-08-09 02:07:15 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-08-09 02:07:15 +0000 |
commit | 5b0c1e07ca169feced6d6458f80c2b9ccc6227e0 (patch) | |
tree | 17ba65edefe013fcaf3edf8138dc6f38023445ca /Doc/library/fnmatch.rst | |
parent | Issue #9425: Create load_builtin() subfunction (diff) | |
download | cpython-5b0c1e07ca169feced6d6458f80c2b9ccc6227e0.tar.gz cpython-5b0c1e07ca169feced6d6458f80c2b9ccc6227e0.tar.bz2 cpython-5b0c1e07ca169feced6d6458f80c2b9ccc6227e0.zip |
Issue 7846: fnmatch cache can grow without bound
Updated to solution to use the functools.lru_cache().
Restores the API so that purge() is not needed
(because the cache never gets big).
Diffstat (limited to 'Doc/library/fnmatch.rst')
-rw-r--r-- | Doc/library/fnmatch.rst | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst index 49073c5a292..0352b5233da 100644 --- a/Doc/library/fnmatch.rst +++ b/Doc/library/fnmatch.rst @@ -84,13 +84,6 @@ patterns. <_sre.SRE_Match object at 0x...> -.. function:: purge() - - Clear the internal pattern cache. - - .. versionadded:: 3.2 - - .. seealso:: Module :mod:`glob` |