summaryrefslogtreecommitdiff
path: root/decorators.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2007-11-28 14:56:59 +0100
committerSylvain <syt@logilab.fr>2007-11-28 14:56:59 +0100
commita1985c17caa606440240d09fdb1a3a06e8dfcc44 (patch)
tree7fa014aed656ae35431b44b885d15aa242be790b /decorators.py
parentbb675d28e04a76ccc8c2e0cd49047074f2d807ab (diff)
downloadlogilab-common-a1985c17caa606440240d09fdb1a3a06e8dfcc44.tar.gz
inherit from object
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