Planning a Python Course for Beginners

Marko Rauhamaa marko at pacujo.net
Thu Aug 10 13:03:45 EDT 2017


Python <python at example.invalid>:

> Marko Rauhamaa wrote:
> I didn't disagree with any of these statements about __hash__, but only
> your statement about id and __eq__:
>
>> id() is actually an ideal return value of __hash__(). The only
>> criterion is that the returned number should be different if the
>> __eq__() is False. That is definitely true for id()
>
> nan is a clear, simple, undeniable counterexample to that claim.

Still, I don't see the point you are trying to make.


Marko



More information about the Python-list mailing list