Expose the memoized function when decorated with @memoize.

This commit is contained in:
Max Goodman
2013-04-09 01:30:44 -07:00
parent c9683902e2
commit 587abe5808

View File

@@ -66,6 +66,7 @@ def memoize(iden, time = 0, stale=False, timeout=30):
return res
new_fn.memoized_fn = fn
return new_fn
return memoize_fn