We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

any

any(iterable)

Returns true if any element of the iterable is true. Equivalent to:

def any(iterable):
    for element in iterable:
        if element:
            return True
    return False

New in version 2.5.