hash

hash(object)

Returns the hash value of the object (if it has one). Hash values are integers. They are used to quickly compare dictionary keys during a dictionary lookup. Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0).

To control the behavior of this function for your own classes, implement the __hash__ method.

 

A Django site. this page was rendered by a django application in 0.02s 2008-11-21 07:08:18.807303. hosted by webfaction.