Peter Otten <__peter__ at web.de> writes: > Here's a variant that does performs only the necessary tests: > > >>> from itertools import izip > >>> True not in (a == b for a, b in izip(range(3), range(3))) Cute!