summaryrefslogtreecommitdiff
path: root/decorators.py
diff options
context:
space:
mode:
Diffstat (limited to 'decorators.py')
-rw-r--r--decorators.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/decorators.py b/decorators.py
index 1abd54b..7cf5a6c 100644
--- a/decorators.py
+++ b/decorators.py
@@ -53,6 +53,7 @@ def cached(callableobj, keyarg=None):
_cache[key] = callableobj(self, *args, **kwargs)
return _cache[key]
return cache_wrapper2
+
def cache_wrapper3(self, *args):
cache = '_%s_cache_' % callableobj.__name__
#print 'cache3?', cache, self, args
@@ -101,6 +102,7 @@ class wproperty(object):
assert obj is not None
return getattr(obj, self.attrname)
+
class classproperty(object):
def __init__(self, get):
self.get = get