Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

memoization module?

0 views
Skip to first unread message

kj

unread,
Jul 5, 2009, 4:42:41 PM7/5/09
to

Is there a memoization module for Python? I'm looking for something
like Mark Jason Dominus' handy Memoize module for Perl.

TIA!

kj

Lino Mastrodomenico

unread,
Jul 5, 2009, 4:50:30 PM7/5/09
to kj, pytho...@python.org
2009/7/5 kj <no.e...@please.post>:

> Is there a memoization module for Python?  I'm looking for something
> like Mark Jason Dominus' handy Memoize module for Perl.

Check out the "memoized" class example here:

<http://wiki.python.org/moin/PythonDecoratorLibrary#Memoize>

--
Lino Mastrodomenico

Daniel Fetchinson

unread,
Jul 5, 2009, 8:23:49 PM7/5/09
to Python
> Is there a memoization module for Python? I'm looking for something
> like Mark Jason Dominus' handy Memoize module for Perl.

The Python Cookbook has several examples:

http://www.google.com/search?q=python+memoize&sitesearch=code.activestate.com

HTH,
Daniel


--
Psss, psss, put it down! - http://www.cafepress.com/putitdown

0 new messages