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
16 changes: 15 additions & 1 deletion Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ subscript notation ``a[k]`` selects the item indexed by ``k`` from the mapping
:keyword:`del` statements. The built-in function :func:`len` returns the number
of items in a mapping.

There is currently a single intrinsic mapping type:
There are two intrinsic mapping types:


Dictionaries
Expand Down Expand Up @@ -535,6 +535,20 @@ module.
an implementation detail at that time rather than a language guarantee.


Frozen dictionaries
^^^^^^^^^^^^^^^^^^^

.. index:: pair: object; frozendict

These represent an immutable dictionary. They are created by the built-in
:func:`frozendict` constructor. A frozendict is :term:`hashable` if all of
its keys and values are hashable, in which case it can be used as an element
of a set, or as a key in another mapping. :class:`!frozendict` is not a
subclass of :class:`dict`; it inherits directly from :class:`object`.

.. versionadded:: 3.15


Callable types
--------------

Expand Down
Loading