summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-06-12 20:38:57 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-06-12 20:38:57 (GMT)
commitfe63c9a29812449cca5a058c74ab831a89b7b117 (patch)
treeedf185cb8500270735bfd666b33dd1c2410a90d5 /Doc
parente12e7aa3fdd98e924dbc2179c54065fff44efd55 (diff)
downloadcpython-fe63c9a29812449cca5a058c74ab831a89b7b117.zip
cpython-fe63c9a29812449cca5a058c74ab831a89b7b117.tar.gz
cpython-fe63c9a29812449cca5a058c74ab831a89b7b117.tar.bz2
Issue #24406: Add sentences on dict comparisons, similar to those for Sequence
and set comparisions. Patch by Gareth Rees.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index fc6d020..0636686 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -3905,6 +3905,10 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
Return a new view of the dictionary's values. See the
:ref:`documentation of view objects <dict-views>`.
+ Dictionaries compare equal if and only if they have the same ``(key,
+ value)`` pairs. Order comparisons ('<', '<=', '>=', '>') raise
+ :exc:`TypeError`.
+
.. seealso::
:class:`types.MappingProxyType` can be used to create a read-only view
of a :class:`dict`.