Skip to content

Commit 9346e22

Browse files
gh-141831: Document behavior of functools.lru_cache with concurrent access (gh-141869)
1 parent 04e3670 commit 9346e22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/functools.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ The :mod:`functools` module defines the following functions:
5757
another thread makes an additional call before the initial call has been
5858
completed and cached.
5959

60+
Call-once behavior is not guaranteed because locks are not held during the
61+
function call. Potentially another call with the same arguments could
62+
occur while the first call is still running.
63+
6064
.. versionadded:: 3.9
6165

6266

0 commit comments

Comments
 (0)