python hash() function
Terry Reedy
tjreedy at udel.edu
Tue Mar 25 22:22:34 EDT 2008
"Alvin Delagon" <adelagon at gmail.com> wrote in message
news:7a01f6c00803251905j4b12633m65b2cde0f3037854 at mail.gmail.com...
| 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.
If not part of your installation, start with svn.python.org and click
browse. I would look for builtins.c or somesuch.
More information about the Python-list
mailing list