Commit 447ca17f authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Bugfix in new memoize function - cache needs to be in real decorator

parent 218ad4c5
......@@ -40,10 +40,11 @@ def memoize(args=None, kwargs=None):
:arg args: A list of positional argument indices.
:arg kwargs: A list of keyword argument names.
cache = {}
def decorator(func):
cache = {}
def wrapper(*a, **kwa):
key = []
Supports Markdown
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