summaryrefslogtreecommitdiffstats
path: root/Doc/library/stdtypes.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-04-15 22:16:30 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-04-15 22:16:30 (GMT)
commit0db176f8f6cfaf3277e6ef41d92b09a01b263f27 (patch)
tree9c881aaab525015223b7219c8fa12910e66354e9 /Doc/library/stdtypes.rst
parent8a1d04c64372d4706572671a21ff9d3e4a6374ca (diff)
downloadcpython-0db176f8f6cfaf3277e6ef41d92b09a01b263f27.zip
cpython-0db176f8f6cfaf3277e6ef41d92b09a01b263f27.tar.gz
cpython-0db176f8f6cfaf3277e6ef41d92b09a01b263f27.tar.bz2
Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType
Diffstat (limited to 'Doc/library/stdtypes.rst')
-rw-r--r--Doc/library/stdtypes.rst16
1 files changed, 10 insertions, 6 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 8b8400e..f06f579 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2258,13 +2258,13 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
.. method:: items()
- Return a new view of the dictionary's items (``(key, value)`` pairs). See
- below for documentation of view objects.
+ Return a new view of the dictionary's items (``(key, value)`` pairs).
+ See the :ref:`documentation of view objects <dict-views>`.
.. method:: keys()
- Return a new view of the dictionary's keys. See below for documentation of
- view objects.
+ Return a new view of the dictionary's keys. See the :ref:`documentation
+ of view objects <dict-views>`.
.. method:: pop(key[, default])
@@ -2298,8 +2298,12 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
.. method:: values()
- Return a new view of the dictionary's values. See below for documentation of
- view objects.
+ Return a new view of the dictionary's values. See the
+ :ref:`documentation of view objects <dict-views>`.
+
+.. seealso::
+ :class:`types.MappingProxyType` can be used to create a read-only view
+ of a :class:`dict`.
.. _dict-views: