Planning a Python Course for Beginners
Python
python at example.invalid
Fri Aug 11 06:37:24 EDT 2017
Marko Rauhamaa wrote:
> 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.
You do have a cognitive disease, don't you?
More information about the Python-list
mailing list