File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ The :mod:`functools` module defines the following functions:
49
49
>>> factorial(12) # makes two new recursive calls, the other 10 are cached
50
50
479001600
51
51
52
+ The cache is threadsafe so the wrapped function can be used in multiple
53
+ threads.
54
+
52
55
.. versionadded :: 3.9
53
56
54
57
@@ -140,6 +143,9 @@ The :mod:`functools` module defines the following functions:
140
143
*maxsize * most recent calls. It can save time when an expensive or I/O bound
141
144
function is periodically called with the same arguments.
142
145
146
+ The cache is threadsafe so the wrapped function can be used in multiple
147
+ threads.
148
+
143
149
Since a dictionary is used to cache results, the positional and keyword
144
150
arguments to the function must be hashable.
145
151
You can’t perform that action at this time.
0 commit comments