Skip to content

Commit 852be38

Browse files
committed
Update comment
1 parent d5258e0 commit 852be38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Include/internal/pycore_dict.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ extern uint32_t _PyDictKeys_GetVersionForCurrentState(
9595
* In free-threaded builds ensures that the dict can be used for lock-free
9696
* reads if a version was assigned.
9797
*
98+
* The caller must hold the per-object lock on dict.
99+
*
98100
* Returns the version number, or zero if it was not possible to get a version number. */
99101
extern uint32_t _PyDict_GetKeysVersionForCurrentState(
100102
PyInterpreterState *interp, PyDictObject *dict);

0 commit comments

Comments
 (0)