[docs] [issue14617] confusing docs with regard to __hash__
Ethan Furman
report at bugs.python.org
Tue Sep 11 20:01:01 CEST 2012
Ethan Furman added the comment:
Ethan Furman wrote:
> 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.
Argh. Nevermind! It all looks good. :)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14617>
_______________________________________
More information about the docs
mailing list