summaryrefslogtreecommitdiffstats
path: root/Doc/library/fnmatch.rst
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-07-10 13:52:13 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-07-10 13:52:13 (GMT)
commit0425a8ea729617a74ab343909687d98216d25524 (patch)
tree40bf391a27838e4c86970262d485e834b36d50b1 /Doc/library/fnmatch.rst
parenta85148352773929e11324f3786ebe5a78f372d94 (diff)
downloadcpython-0425a8ea729617a74ab343909687d98216d25524.zip
cpython-0425a8ea729617a74ab343909687d98216d25524.tar.gz
cpython-0425a8ea729617a74ab343909687d98216d25524.tar.bz2
Fix 'refleak' introduced by fnmatch cache purge tests.
This introduces a 'purge' function for the fnmatch module analogous to the 'purge' function in the re module.
Diffstat (limited to 'Doc/library/fnmatch.rst')
-rw-r--r--Doc/library/fnmatch.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst
index 7fa6148..ec78ed2 100644
--- a/Doc/library/fnmatch.rst
+++ b/Doc/library/fnmatch.rst
@@ -82,6 +82,13 @@ patterns.
<_sre.SRE_Match object at 0x...>
+.. function:: purge()
+
+ Clear the internal pattern cache.
+
+ .. versionadded:: 3.2
+
+
.. seealso::
Module :mod:`glob`