(result, func, argtuple)
return result
Result is 2 on exception, 1 on True, 0 on False
Result is 2 on exception, 1 on True, 0 on False
Result is 2 on exception 1 on True 0 on False
def errcheck_predicate(result, func, argtuple):
    """Result is 2 on exception, 1 on True, 0 on False"""
    if result == 2:
        raise PredicateError("Failed to evaluate %s" % repr(func))
    return result
def errcheck_predicate ( result , func , argtuple ) : if result == 2 : raise PredicateError ( "Failed to evaluate %s" % repr ( func ) ) return result