10000 bpo-40571: Make lru_cache(maxsize=None) more discoverable by rhettinger · Pull Request #20019 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-40571: Make lru_cache(maxsize=None) more discoverable #20019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typo
  • Loading branch information
rhettinger committed May 10, 2020
commit a412632534c7ddf5a535db12c19c5429b9ab0a32
2 changes: 1 addition & 1 deletion Doc/library/functools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The :mod:`functools` module defines the following functions:

@cache
def factorial(n):
return n * fact(n-1) if n else 1
return n * factorial(n-1) if n else 1

>>> factorial(10) # no previously cached result, makes 11 recursive calls
3628800
Expand Down
0