|
cached(callableobj=None,
keyarg=None,
**kwargs)
Simple decorator to cache result of method call. |
source code
|
|
|
|
|
|
|
copy_cache(obj,
funcname,
cacheobj)
Copy cache for <funcname> from cacheobj to obj. |
source code
|
|
|
|
|
locked(acquire,
release)
Decorator taking two methods to acquire/release a lock as argument,
returning a decorator function which will call the inner method after
having called acquire(self) et will call release(self) afterwards. |
source code
|
|
|
monkeypatch(klass,
methodname=None)
Decorator extending class with the decorated callable. This is basically
a syntactic sugar vs class assignment. |
source code
|
|