Thanks to all who responded on this. The commonly suggested: > if a == b == c == d == e == f == g: > do stuff
Is just what I needed. It never occurred to me that Python supported a construct like that. I would have though this would have evaulated a la: if ((((((a == b) == c) == d) == e) == f) == g): _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor