Death to tuples!
fredrik at pythonware.com
Tue Nov 29 10:36:00 CET 2005
> I would consider
> t = ([1,2], [3,4])
> to be assigning a tuple with two list elements to t.
> The inner lists will be mutable but I did not know you could change the
> outer tuple and still have the same tuple object.
but since hash(tuple) is defined in terms of map(hash, t), the resulting
tuple is not hashable.
More information about the Python-list