Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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....



I'm aware, there was also almost an LFU cache decorator in there.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: