python hash() function

Alvin Delagon adelagon at gmail.com
Tue Mar 25 22:05:59 EDT 2008


Hello,

>>> hash("foobar")
-1969371895

Anyone can explain to me how the hash() function in python does its work? A
link to its source could help me a lot also. I'm looking for a way to
replicate this function in php. Thanks in advance.

---

Alvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080326/d9659edc/attachment.html>


More information about the Python-list mailing list