summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/functools.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index 40f43f8..f736eb0 100644
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -226,8 +226,9 @@ The :mod:`functools` module defines the following functions:
In general, the LRU cache should only be used when you want to reuse
previously computed values. Accordingly, it doesn't make sense to cache
- functions with side-effects, functions that need to create distinct mutable
- objects on each call, or impure functions such as time() or random().
+ functions with side-effects, functions that need to create
+ distinct mutable objects on each call (such as generators and async functions),
+ or impure functions such as time() or random().
Example of an LRU cache for static web content::