I saw an example of code that where hash function is applied to a tuple. As a result it returns a negative integer. I wonder what does this function do? Google
hash
The hash is used by dictionaries and sets to quickly look up the object. A good starting point is Wikipedia's article on hash tables.