comparing values in two sets

Paul Rubin http
Mon May 15 03:09:00 EDT 2006


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!



More information about the Python-list mailing list