Commit 52d2677f authored by Yuxin Wu's avatar Yuxin Wu

fix bug in 683e43ff (fix #969)

parent f5ba2692
......@@ -193,8 +193,7 @@ def memoized_method(func):
else:
cache = self._MEMOIZED_CACHE
key = args[1:] + tuple(kwargs)
print(key)
key = (func, ) + args[1:] + tuple(kwargs)
ret = cache.get(key, None)
if ret is not None:
return ret
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment