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 Giacomo.Alzetta
Recipients Giacomo.Alzetta, docs@python
Date 2014-06-16.18:36:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402943814.73.0.280307813498.issue21782@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation for hashable in the glossary (https://docs.python.org/3.4/reference/datamodel.html#object.__hash__) is incorrect:

they all compare unequal (except with themselves), **and their hash value is their id().**

It is *not* true that their hash is their id (see relevant SO question: http://stackoverflow.com/questions/24249729/user-defined-class-hash-and-id-and-doc)

Also the documentation for __hash__ (https://docs.python.org/3.4/reference/datamodel.html#object.__hash__) doesn't even mention id().
History
Date User Action Args
2014-06-16 18:36:54Giacomo.Alzettasetrecipients: + Giacomo.Alzetta, docs@python
2014-06-16 18:36:54Giacomo.Alzettasetmessageid: <1402943814.73.0.280307813498.issue21782@psf.upfronthosting.co.za>
2014-06-16 18:36:54Giacomo.Alzettalinkissue21782 messages
2014-06-16 18:36:54Giacomo.Alzettacreate