[Python-checkins] cpython (3.4): Issue #24406: Add sentences on dict comparisons, similar to those for Sequence
terry.reedy
python-checkins at python.org
Fri Jun 12 22:49:30 CEST 2015
https://hg.python.org/cpython/rev/4e816c324846
changeset: 96590:4e816c324846
branch: 3.4
parent: 96586:50ec3fb126dd
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Fri Jun 12 16:38:57 2015 -0400
summary:
Issue #24406: Add sentences on dict comparisons, similar to those for Sequence
and set comparisions. Patch by Gareth Rees.
files:
Doc/library/stdtypes.rst | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -3905,6 +3905,10 @@
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`.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list