order independent hash?

Terry Reedy tjreedy at udel.edu
Sun Dec 4 19:28:12 EST 2011


On 12/4/2011 6:17 PM, 88888 Dihedral wrote:

> In python the (k,v) pair in a dictionary k and v can be  both an objects.
> v can be a tuple or a list.

In Python, everything is an object. *tuple* and *list* are subclasses of 
*object*. The value v for a dict can be any object, and must be an object.

-- 
Terry Jan Reedy




More information about the Python-list mailing list