"Gabriel Genellina" <[EMAIL PROTECTED]> wrote > > Nice. There is already a memoize decorator in the Python wiki: > http://wiki.python.org/moin/PythonDecoratorLibrary, you can get some ideas > from there. Using the functools module (2.5) or the decorator module by M. > Simoniato (http://www.phyast.pitt.edu/~micheles/python/documentation.html) > you can improve it so the decorated function looks more like the original.
Thank you very much. Both references are very useful. Alec -- http://mail.python.org/mailman/listinfo/python-list