Bruno Desthuilliers wrote:

hash(obj) -> integer
Return a hash value for the object. Two objects with the same value have the same hash value. The reverse is not necessarily true, but likely.

Of course not all Python objects are hashable:

>>> hash([])
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: list objects are unhashable
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to