Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad9eaea

Browse files
authored
Remove outdated and confusing advice about setting maxsize (GH-19889)
1 parent d699d5e commit ad9eaea

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Doc/library/functools.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ The :mod:`functools` module defines the following functions:
107107
return sum(sentence.count(vowel) for vowel in 'aeiou')
108108

109109
If *maxsize* is set to ``None``, the LRU feature is disabled and the cache can
110-
grow without bound. The LRU feature performs best when *maxsize* is a
111-
power-of-two.
110+
grow without bound.
112111

113112
If *typed* is set to true, function arguments of different types will be
114113
cached separately. For example, ``f(3)`` and ``f(3.0)`` will be treated

0 commit comments

Comments
 (0)