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 60b622f commit 31a4385Copy full SHA for 31a4385
Doc/c-api/dict.rst
@@ -369,7 +369,7 @@ Dictionary objects
369
}
370
371
The function is not thread-safe in the :term:`free-threaded <free threading>`
372
- build without external synchronization. You can use
+ build without external synchronization for a mutable :class:`dict`. You can use
373
:c:macro:`Py_BEGIN_CRITICAL_SECTION` to lock the dictionary while iterating
374
over it::
375
@@ -379,6 +379,8 @@ Dictionary objects
379
380
Py_END_CRITICAL_SECTION();
381
382
+ The function is thread-safe on a :class:`frozendict`.
383
+
384
.. note::
385
386
On the free-threaded build, this function can be used safely inside a
0 commit comments