def signum(a, b):
    """
    Returns 1 if value of object a is greater than that of object b.
    Returns 0 if objects are equivalent in value.
    Returns -1 if value of object a is lesser than that of object b.
    """
    return int(a > b) - int(a < b)