[docs] [issue14617] confusing docs with regard to __hash__

Ethan Furman report at bugs.python.org
Tue Sep 11 19:57:58 CEST 2012

Ethan Furman added the comment:

R. David Murray wrote:
> I rewrote the section a bit differently than you did in your patch...if you think my changes are not an improvement please let me know.

This line is incorrect:

A class which defines its own :meth:`__hash__` that explicitly raises a 
:exc:`TypeError` would be incorrectly identified as hashable by an 
``isinstance(obj, collections.Hashable)`` call.

It should be "would not be correctly identified as hashable".

Otherwise, looks great.


Python tracker <report at bugs.python.org>

More information about the docs mailing list