Skip to content

Commit 3171d67

Browse files
toonarmycaptainmatrixise
authored andcommitted
Doc: Clarify dict equality irrespective of ordering. (GH-16266)
1 parent 9ab6038 commit 3171d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4381,7 +4381,7 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
43814381
False
43824382

43834383
Dictionaries compare equal if and only if they have the same ``(key,
4384-
value)`` pairs. Order comparisons ('<', '<=', '>=', '>') raise
4384+
value)`` pairs (regardless of ordering). Order comparisons ('<', '<=', '>=', '>') raise
43854385
:exc:`TypeError`.
43864386

43874387
Dictionaries preserve insertion order. Note that updating a key does not

0 commit comments

Comments
 (0)