Package horizons :: Package util :: Package python :: Module decorators :: Class cachedfunction
[hide private]
[frames] | no frames]

Class cachedfunction

source code

Decorator that caches a function's return value each time it is called. If called later with the same arguments, the cached value is returned, and not re-evaluated.

Instance Methods [hide private]
 
__init__(self, func) source code
 
__call__(self, *args, **kwargs) source code