Issue 31295: typo in hash docs (original) (raw)
Issue31295
Created on 2017-08-28 19:42 by Antony.Lee, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg300961 - (view) | Author: Antony Lee (Antony.Lee) * | Date: 2017-08-28 19:42 |
In https://docs.python.org/3.7/reference/datamodel.html#object.__hash__ I think x.__hash__() returns an appropriate value such that x == y implies both that x is y and hash(x) == hash(y). should be x.__hash__() returns an appropriate value such that x == y and x is y both imply that hash(x) == hash(y). right? | ||
msg300964 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2017-08-28 20:00 |
No, it is correct as worded. It is talking about the default methods. With the default methods, x == y implies that x is y. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:51 | admin | set | github: 75476 |
2017-08-28 20:00:57 | r.david.murray | set | status: open -> closednosy: + r.david.murraymessages: + resolution: not a bugstage: resolved |
2017-08-28 19:42:50 | Antony.Lee | create |