[issue9132] Documentation for comparing dictionaries is out of date
report at bugs.python.org
Wed Jun 30 21:59:11 CEST 2010
New submission from Daniel Stutzbach <daniel at stutzbachenterprises.com>:
"Mappings (dictionaries) compare equal if and only if their sorted (key, value) lists compare equal.  Outcomes other than equality are resolved consistently, but are not otherwise defined. "
However, the last sentence is no longer true. I suggest changing the last sentence to:
"Comparisons other than equality testing raise a TypeError."
I think the footnote  is sufficiently historical that it could be removed as well. Alternately, it could be updated to read, "In older versions of Python, outcomes other than equality were resolved consistently but were not otherwise defined."
assignee: docs at python
nosy: docs at python, stutzbach
stage: needs patch
title: Documentation for comparing dictionaries is out of date
versions: Python 3.1, Python 3.2
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list