From baebf7ca34488ced97a56d155fb110f02cf1aa05 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 3 May 2020 16:45:13 -0700 Subject: [PATCH] Remove outdated and confusing advice about setting maxsize (GH-19889) (cherry picked from commit ad9eaeab74b680830dbefc18e8fe3dec4677a21b) Co-authored-by: Raymond Hettinger --- Doc/library/functools.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 3a0b554e923c7a..0fb8d900c73627 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -101,8 +101,7 @@ The :mod:`functools` module defines the following functions: return sum(sentence.count(vowel) for vowel in 'aeiou') If *maxsize* is set to ``None``, the LRU feature is disabled and the cache can - grow without bound. The LRU feature performs best when *maxsize* is a - power-of-two. + grow without bound. If *typed* is set to true, function arguments of different types will be cached separately. For example, ``f(3)`` and ``f(3.0)`` will be treated