[issue7846] Fnmatch cache is never cleared during usage
report at bugs.python.org
Tue Feb 16 06:02:12 CET 2010
Éric Araujo <merwok at netwok.org> added the comment:
The feature seems useful to me and the patch straightforward.
I wonder why you used a global name for the max length (“_MAXCACHE”) instead of inlining the value where it is used. Does it feel more constanty? ;) I fear that the leading underscore won’t discourage users from touching it, so I’d suggest making it public or completely hidden. On second thought, you could argue that Python is a matter of consenting adults, and that leading underscore is okay.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list