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.

 

A Django site. this page was rendered by a django application in 0.00s 2012-10-01 11:50:17.547850. hosted by webfaction.