[issue7846] Fnmatch cache is never cleared during usage
R. David Murray
report at bugs.python.org
Thu Jul 8 15:53:24 CEST 2010
R. David Murray <rdmurray at bitdance.com> added the comment:
OK, I've looked at the patch now. (1) it needs unit tests. (2) a py3k port would be helpful, since the code is very different in py3k, and we are now applying patches first to the py3k branch and then backporting.
I think this can be considered a bug (the ever-expanding cache), so I'm OK with applying this in 2.7.1 once it has unit tests.
Note that using _MAXCACHE (leading underscore) and not documenting it follows the 're' model, so that is the best choice.
resolution: -> accepted
versions: -Python 2.6
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list