Remove print cache

This commit is contained in:
Lafrite 2015-02-21 11:20:42 +01:00
parent da6a43364b
commit c55f127a3c

View File

@ -16,7 +16,7 @@ def power_cache(fun):
"""Decorator which cache calculated powers of polynoms """ """Decorator which cache calculated powers of polynoms """
cache = {} cache = {}
def cached_fun(self, power): def cached_fun(self, power):
print("cache -> ", cache) #print("cache -> ", cache)
if (tuple(self._coef), power) in cache.keys(): if (tuple(self._coef), power) in cache.keys():
return cache[(tuple(self._coef), power)] return cache[(tuple(self._coef), power)]
else: else: