def short_or(key, aList, anObject):
    """A helper function for parse_branch,
       since reduce(or, [value]) won't short-circuit."""
    for eachValue in aList:
        if parse_branch(key, eachValue, anObject): return True
    return False
A helper function for parse_branch,
       since reduce(or, [value]) won't short-circuit.
recipes/Python/223612_Generic_filter_logic_strategy/recipe-223612.py