I am trying to get a list of list of tuples : something like [ [(1,0),(2,0),(3,0)],[(1,1),(2,1),(3,1)....]]
I used this statement
set([(a,b)for
Example:
>>> {1, 2, [3, 4]}
Traceback (most recent call last):
File "", line 1, in
TypeError: unhashable type: 'list'
>>> {1, 2, (3, 4)}
set([1, 2, (3, 4)])
Note that hashing is somehow recursive and the above holds true for nested items:
>>> {1, 2, 3, (4, [2, 3])}
Traceback (most recent call last):
File "", line 1, in
TypeError: unhashable type: 'list'
Dict keys also are hashable, so the above holds for dict keys too.