diff options
author | Raymond Hettinger <python@rcn.com> | 2010-08-09 02:07:15 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-08-09 02:07:15 (GMT) |
commit | 5b0c1e07ca169feced6d6458f80c2b9ccc6227e0 (patch) | |
tree | 17ba65edefe013fcaf3edf8138dc6f38023445ca /Doc | |
parent | 44c6c155d6cc0d218decd250d84a238196be8daa (diff) | |
download | cpython-5b0c1e07ca169feced6d6458f80c2b9ccc6227e0.zip cpython-5b0c1e07ca169feced6d6458f80c2b9ccc6227e0.tar.gz cpython-5b0c1e07ca169feced6d6458f80c2b9ccc6227e0.tar.bz2 |
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')
-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 49073c5..0352b52 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` |