9 ms·
While not actually called memoize, Python 3.2 ships with the lru_cache decorator in the standard library module functools. http://docs.python.org/dev/library/f
by ddbeck 15y ago
While not actually called memoize, Python 3.2 ships with the lru_cache decorator in the standard library module functools.
http://docs.python.org/dev/library/functools.html#functools.lru_cache http://docs.python.org/dev/library/functools.html#functools....
- kingkilr 15y agoI'm aware, there was also almost an LFU cache decorator in there.