From 30b0a915e6c7d573c8d49e759ced365d4f0c2b4b Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Thu, 22 Feb 2018 12:37:27 +0000 Subject: [PATCH] update notebook --- advanced_topics/06_decorators.ipynb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/advanced_topics/06_decorators.ipynb b/advanced_topics/06_decorators.ipynb index 706a427..e7ad381 100644 --- a/advanced_topics/06_decorators.ipynb +++ b/advanced_topics/06_decorators.ipynb @@ -498,8 +498,10 @@ " # remove the oldest item. In practice\n", " # it would make more sense to remove\n", " # the item with the oldest access\n", - " # time, but this is good enough for\n", - " # an introduction!\n", + " # time (or remove the least recently\n", + " # used item, as the built-in\n", + " # @functools.lru_cache does), but this\n", + " # is good enough for now!\n", " if len(cache) >= maxSize:\n", " cache.popitem(last=False)\n", "\n", -- GitLab