Ask Your Question

Revision history [back]

I think that in general, if you create a Set with elements that are not hashable, it will not behave perfectly. If you used x = [(0,), (0,)] instead, or equivalently

sage: x = [[0], [0]]
sage: y = [tuple(L) for L in x]
sage: Set(y)

then this will be better behaved.