Built in python hash() function
Posted
by sm1
on Stack Overflow
See other posts from Stack Overflow
or by sm1
Published on 2009-04-27T14:31:00Z
Indexed on
2010/05/26
1:01 UTC
Read the original article
Hit count: 190
Windows XP, Python 2.5:
hash('http://stackoverflow.com') Result: 1934711907
Google App Engine (http://shell.appspot.com/):
hash('http://stackoverflow.com') Result: -5768830964305142685
Why is that? How can I have a hash function which will give me same results across different platforms (Windows, Linux, Mac)?
© Stack Overflow or respective owner