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:
Convert both sequences to lists, and use builtin list comparison. It should be sufficient, unless your sequences are really large.
list(a) == list(b)
Edit:
Testing done by schickb shows that using tuples is slightly faster:
tuple(a) == tuple(b)