started copy implementation, have to get rid of _getstate_ and _setstate_

This commit is contained in:
mzwiessele 2014-03-26 15:03:06 +00:00
parent a126f288d2
commit 9cf37ff104
4 changed files with 20 additions and 28 deletions

View file

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