Does python provide an elegant way to check for \"equality\" of sequences of different types? The following work, but they seem rather ugly and verbose for python code:
It's probably not as efficient, but it looks funky:
def cmpLists(a, b): return len(a) == len(b) and (False not in [a[i] == b[i] for i in range(0,len(a)])
I don't know the "all" function that Ben mentioned, but perhaps you could use that instead of "False not in"