namekuseijin <namekuseijin.nos...@gmail.com> writes: > ... return (len(a) == len(b)) and not any(not comp(a,b) for (a,b) > in (zip(a, b)))
If I'm reading that correctly, I think I'd write it as: from itertools import imap, izip return (len(a) == len(b)) and all(imap(comp, izip(a, b))) That is more concise and avoids building an intermediate list with zip. Maybe we need something like zipWith ... -- http://mail.python.org/mailman/listinfo/python-list