Wrote a memoize function: I do not mind feedback
Peter Otten
__peter__ at web.de
Mon Apr 27 10:28:30 EDT 2015
Cecil Westerhof wrote:
> I started again with Python. In Clojure you have memoize. I thought it
> nice to have this in Python also. So I wrote it. With a Fibonacci
> function to show the usefulness.
> You can find it here:
> https://github.com/CecilWesterhof/PythonLibrary
>
> I love to hear what you think of it.
>
> And ideas for other functionalities are welcome also. Übung macht den
> Meister.
See also:
https://docs.python.org/dev/library/functools.html#functools.lru_cache
A bit hard to find unless you already know it's there.
More information about the Python-list
mailing list