mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
a851483527
commit
0425a8ea72
3 changed files with 18 additions and 2 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue