[Python-checkins] Doc: Clarify dict equality irrespective of ordering. (GH-16266)
Miss Islington (bot)
webhook-mailer at python.org
Thu Sep 19 01:57:36 EDT 2019
https://github.com/python/cpython/commit/50ecedc10309373809cc45595a1027076e808607
commit: 50ecedc10309373809cc45595a1027076e808607
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-09-18T22:57:32-07:00
summary:
Doc: Clarify dict equality irrespective of ordering. (GH-16266)
(cherry picked from commit 3171d67a6aaf7fe88685b3a80644f0284686ef63)
Co-authored-by: toonarmycaptain <toonarmycaptain at hotmail.com>
files:
M Doc/library/stdtypes.rst
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 7a8faba00fd9..57b72c5b6562 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -4280,7 +4280,7 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
False
Dictionaries compare equal if and only if they have the same ``(key,
- value)`` pairs. Order comparisons ('<', '<=', '>=', '>') raise
+ value)`` pairs (regardless of ordering). Order comparisons ('<', '<=', '>=', '>') raise
:exc:`TypeError`.
Dictionaries preserve insertion order. Note that updating a key does not
More information about the Python-checkins
mailing list