[issue9396] Standardise (and publish?) cache handling in standard library
report at bugs.python.org
Sun Aug 8 21:23:00 CEST 2010
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
I will take a look at the various caches and see if some of their features can be consolidated. It is okay if some need to have their own strategies or situation specific approaches, but you're right that common features should be looked at to see if they make sense in the functools caches.
Am not sure that dynamically changing the maxsize is a generally useful feature (most are set to the largest size that makes sense and not revisited latter), but I will take a look to whether that complicates the code (if it's simple and fast, it may be worth doing).
versions: +Python 3.2 -Python 3.3
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list