This code compiles and runs and works fine as a hash for an array of ints :
def hashValue(a: List[int]) -> int: return tuple(a)
But I don't understand what's going on under the hood.
Does py maintain an internal hash of the immutable tuple ?