(*args)
Assert all arguments have the same value
Assert all arguments have the same value
Assert all arguments have the same value
def aeq(*args):
    """
    Assert all arguments have the same value
    """
    arguments = (arg for arg in args)
    first = next(arguments)
    assert all(arg == first for arg in arguments), \
        "Not all arguments have the same value: " + str(args)
def aeq ( * args ) : arguments = ( arg for arg in args ) first = next ( arguments ) assert all ( arg == first for arg in arguments ) , "Not all arguments have the same value: " + str ( args )