minor: some documentation
This commit is contained in:
parent
a732d82a98
commit
f70267ec1c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user