minor: some documentation

This commit is contained in:
Stephen McQuay 2011-04-03 11:16:14 -06:00
parent a732d82a98
commit f70267ec1c

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]) yield tuple([x + offset for sel in selections for x in sel])
def memoize(f): 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 = {} cache = {}
def memf(*x, **kargs): def memf(*x, **kargs):
if x not in cache: if x not in cache: