summaryrefslogtreecommitdiffstats
path: root/Doc/library/fnmatch.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-08-09 02:07:15 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-08-09 02:07:15 (GMT)
commit5b0c1e07ca169feced6d6458f80c2b9ccc6227e0 (patch)
tree17ba65edefe013fcaf3edf8138dc6f38023445ca /Doc/library/fnmatch.rst
parent44c6c155d6cc0d218decd250d84a238196be8daa (diff)
downloadcpython-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/library/fnmatch.rst')
-rw-r--r--Doc/library/fnmatch.rst7
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`