Message180100
> It doesn't actually fix the bug and makes hash inconsistent with cmp.
The only constraint is that a == b imply hash(a) == hash(b). But the converse doesn't have to be true, i.e. if it perfectly possible to have hash(a) == hash(b) and a != b (pretty much by definition of a hash function, actually).
What Brett's change means is that the hash function isn't as fine-grained as it could be, but I'm not sure it's very important for code objects.
Of course, that Brett's commit doesn't fix the original bug (if confirmed) is a more annoying issue :-) |
|
Date |
User |
Action |
Args |
2013-01-16 18:57:27 | pitrou | set | recipients:
+ pitrou, brett.cannon, rhettinger, ncoghlan, eric.araujo, Jeremy.Hylton, eltoder |
2013-01-16 18:57:27 | pitrou | set | messageid: <1358362647.26.0.443347525413.issue11983@psf.upfronthosting.co.za> |
2013-01-16 18:57:27 | pitrou | link | issue11983 messages |
2013-01-16 18:57:27 | pitrou | create | |
|