[issue5169] Default hash not equal to id on AMD Sempron

Mark Dickinson report at bugs.python.org
Fri Feb 6 17:24:20 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

It looks like this is a platform with sizeof(long) == 4 and sizeof(void *) 
== 8.  Is that right?  As Antoine says, I can't see any problem here.  Why 
do you think that hash(a) should be equal to id(a) in this case?

Antoine, in what way would id()/4 be better than id()?

----------
nosy: +marketdickinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5169>
_______________________________________


More information about the Python-bugs-list mailing list