From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 19 Sep 2019 05:58:42 +0000 (-0700) Subject: Doc: Clarify dict equality irrespective of ordering. (GH-16266) X-Git-Tag: v3.8.0rc1~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16eb6232c0ac86e2a0072b98f5add46ab7cb08c0;p=python Doc: Clarify dict equality irrespective of ordering. (GH-16266) (cherry picked from commit 3171d67a6aaf7fe88685b3a80644f0284686ef63) Co-authored-by: toonarmycaptain --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 06b0c00ed1..9bc4cbe4f7 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -4356,7 +4356,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