From a1985c17caa606440240d09fdb1a3a06e8dfcc44 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 28 Nov 2007 14:56:59 +0100 Subject: inherit from object --- decorators.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'decorators.py') 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 -- cgit v1.2.1