Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/library/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,13 @@ Standard names are defined for the following types:
signifying (respectively) the types of the underlying mapping's keys and
values.

.. warning::

``MappingProxyType`` can expose its internal mapping
in some rare cases on some versions of Python.
Starting from Python 3.15 it is recommeneded
to use truly immutable :class:`frozendict` instead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that a "warning" is justified here, a "note" would be enough.

For the second sentence, maybe only recommend frozendict to "store sensitive information".


.. versionadded:: 3.3

.. versionchanged:: 3.9
Expand Down
Loading