Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 214eb2c commit ba4bb7eCopy full SHA for ba4bb7e
1 file changed
Doc/library/functools.rst
@@ -49,6 +49,9 @@ The :mod:`functools` module defines the following functions:
49
>>> factorial(12) # makes two new recursive calls, the other 10 are cached
50
479001600
51
52
+ The cache is threadsafe so the wrapped function can be used in multiple
53
+ threads.
54
+
55
.. versionadded:: 3.9
56
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
147
148
149
Since a dictionary is used to cache results, the positional and keyword
150
arguments to the function must be hashable.
151
0 commit comments