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

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to