Doc: Clarify dict equality irrespective of ordering. (GH-16266)

This commit is contained in:
toonarmycaptain 2019-09-19 00:51:24 -05:00 committed by Stéphane Wirtel
parent 9ab6038fe8
commit 3171d67a6a

View file

@ -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