minor: some documentation

This commit is contained in:
Stephen McQuay 2011-04-03 11:16:14 -06:00
parent a732d82a98
commit f70267ec1c
1 changed files with 4 additions and 0 deletions

View File

@ -205,6 +205,10 @@ def _samples_ur(items, k, offset = 0):
yield tuple([x + offset for sel in selections for x in sel])
def memoize(f):
"""
I only cache on power and phicount; I figure that one should stick to a
particular offset throughout one's codebase.
"""
cache = {}
def memf(*x, **kargs):
if x not in cache: