Re: [Python-Dev] [Python-checkins] cpython: Describe the default hash correctly, and mark a couple of CPython

May 20, 2012
3:28 p.m.
On 5/20/2012 4:31 AM, nick.coghlan wrote:
+ and ``x.__hash__()`` returns an appropriate value such that ``x == y`` + implies both that ``x is y`` and ``hash(x) == hash(y)``.
I don't understand what you were trying to say with x == y implies x is y but I know you know that that is not true ;=0.

May 2012
2:50 a.m.
New subject: [Python-checkins] cpython: Describe the default hash correctly, and mark a couple of CPython
It's true for the default comparison definition for user defined classes, which is what that paragraph describes. -- Sent from my phone, thus the relative brevity :) On May 21, 2012 2:32 AM, "Terry Reedy" <tjreedy@udel.edu> wrote:
4682
Age (days ago)
4683
Last active (days ago)
1 comments
2 participants
participants (2)
-
Nick Coghlan
-
Terry Reedy