This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gdr@garethrees.org
Recipients docs@python, gdr@garethrees.org
Date 2015-06-08.11:32:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433763158.1.0.945531416377.issue24406@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-06-08 11:32:38gdr@garethrees.orgsetrecipients: + gdr@garethrees.org, docs@python
2015-06-08 11:32:38gdr@garethrees.orgsetmessageid: <1433763158.1.0.945531416377.issue24406@psf.upfronthosting.co.za>
2015-06-08 11:32:38gdr@garethrees.orglinkissue24406 messages
2015-06-08 11:32:37gdr@garethrees.orgcreate