commit | 0425a8ea729617a74ab343909687d98216d25524 | [log] [tgz] |
---|---|---|
author | R. David Murray <rdmurray@bitdance.com> | Sat Jul 10 13:52:13 2010 +0000 |
committer | R. David Murray <rdmurray@bitdance.com> | Sat Jul 10 13:52:13 2010 +0000 |
tree | 40bf391a27838e4c86970262d485e834b36d50b1 | |
parent | a85148352773929e11324f3786ebe5a78f372d94 [diff] [blame] |
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.
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 @@ <_sre.SRE_Match object at 0x...> +.. function:: purge() + + Clear the internal pattern cache. + + .. versionadded:: 3.2 + + .. seealso:: Module :mod:`glob`