Skip to content

Commit

Permalink
Remove outdated and confusing advice about setting maxsize (pythonGH-…
Browse files Browse the repository at this point in the history
…19889)

(cherry picked from commit ad9eaea)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
  • Loading branch information
rhettinger authored and miss-islington committed May 3, 2020
1 parent 108e455 commit baebf7c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Doc/library/functools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit baebf7c

Please sign in to comment.