Skip to content

Commit 90cac54

Browse files
committed
Address feedback; move thread safety section below see-also
1 parent 49293fb commit 90cac54

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Doc/library/stdtypes.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5508,6 +5508,12 @@ can be used interchangeably to index the same dictionary entry.
55085508
.. versionchanged:: 3.8
55095509
Dictionaries are now reversible.
55105510

5511+
5512+
.. seealso::
5513+
:class:`types.MappingProxyType` can be used to create a read-only view
5514+
of a :class:`dict`.
5515+
5516+
55115517
.. admonition:: Thread safety
55125518

55135519
Creating a dictionary with the :class:`dict` constructor is atomic when the
@@ -5649,11 +5655,6 @@ can be used interchangeably to index the same dictionary entry.
56495655
across threads. See :ref:`freethreading-python-howto` for more information.
56505656

56515657

5652-
.. seealso::
5653-
:class:`types.MappingProxyType` can be used to create a read-only view
5654-
of a :class:`dict`.
5655-
5656-
56575658
.. _dict-views:
56585659

56595660
Dictionary view objects

0 commit comments

Comments
 (0)