Possible Duplicate:
check if all elements in a list are identical
I want to check if all of the elements of a list are equal. I couldn't do this with:
if all (x == x for x in (a, b, c, d)):
...
Is there very minimalistic and elegant way to do this in Python?