Add cola.decorators to provide the memoize() decorator
commit271fd9a199810e303a3442032c0fa2fe90fc0f2d
authorDavid Aguilar <davvid@gmail.com>
Tue, 8 Jun 2010 20:52:47 +0000 (8 13:52 -0700)
committerDavid Aguilar <davvid@gmail.com>
Tue, 8 Jun 2010 20:52:47 +0000 (8 13:52 -0700)
tree72701f5ba9bcad4ad4b47f73acc1eab0fc8941cb
parent904b126eaecb0af311d1978c6e5129f7cb85e9eb
Add cola.decorators to provide the memoize() decorator

http://en.wikipedia.org/wiki/Memoization

We're including code from python-decorator for ease of installation.
Our addition is the memoize() decorator.  memoize() will allow us to
simplify many of our singleton factory methods.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/decorators.py [new file with mode: 0644]