From: toonarmycaptain Date: Thu, 19 Sep 2019 05:51:24 +0000 (-0500) Subject: Doc: Clarify dict equality irrespective of ordering. (GH-16266) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3171d67a6aaf7fe88685b3a80644f0284686ef63;p=python Doc: Clarify dict equality irrespective of ordering. (GH-16266) --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 3895a972a7..e8b3aba4b9 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -4381,7 +4381,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