Message244998
The "Built-in Types" section of the library documentation does not explain how two dictionaries are compared for equality.
The place where this is documented is under "Comparisons" in the Language Reference:
> Mappings (dictionaries) compare equal if and only if they have the same (key, value) pairs.
but it is not obvious from the section on dictionaries in "Built-in Types" that this is where to look.
(Contrast with the situation for sequences and sets, where "Built-in Types" does explain how these objects are compared for equality.)
I suggest that the "Built-in Types" section should explain how two dictionaries are tested for equality. |
|
Date |
User |
Action |
Args |
2015-06-08 11:32:38 | gdr@garethrees.org | set | recipients:
+ gdr@garethrees.org, docs@python |
2015-06-08 11:32:38 | gdr@garethrees.org | set | messageid: <1433763158.1.0.945531416377.issue24406@psf.upfronthosting.co.za> |
2015-06-08 11:32:38 | gdr@garethrees.org | link | issue24406 messages |
2015-06-08 11:32:37 | gdr@garethrees.org | create | |
|