caching in place again and working : )

This commit is contained in:
Max Zwiessele 2014-02-28 11:46:09 +00:00
parent 1d1123fcae
commit 83f5b9377a
4 changed files with 10 additions and 10 deletions

View file

@ -39,7 +39,7 @@ class Cacher(object):
return self.operation(*args)
# TODO: WARNING !!! Cache OFFSWITCH !!! WARNING
return self.operation(*args)
# return self.operation(*args)
#if the result is cached, return the cached computation
state = [all(a is b for a, b in zip(args, cached_i)) for cached_i in self.cached_inputs]