diff --git a/advanced_topics/06_decorators.md b/advanced_topics/06_decorators.md index 1d0292f778f8ceb8071e3e03110c9f15997715f1..8da29fa1998e88afbe115e589d792c31192ba3d4 100644 --- a/advanced_topics/06_decorators.md +++ b/advanced_topics/06_decorators.md @@ -383,8 +383,10 @@ def limitedMemoize(maxSize): # remove the oldest item. In practice # it would make more sense to remove # the item with the oldest access - # time, but this is good enough for - # an introduction! + # time (or remove the least recently + # used item, as the built-in + # @functools.lru_cache does), but this + # is good enough for now! if len(cache) >= maxSize: cache.popitem(last=False)