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. -- https://mail.python.org/mailman/listinfo/python-list