def blend (a, b, weight=0.5):
    """
    blend(a, b[, weight=0.5]) :
    Blends values a and b according to normalized weight w,
    returns a for weight == 0.0 and b for weight = 1.0, a*(1.0-weight)+b*weight in between

    :rtype: float
    """
    return a*(weight-1.0)+b*weight

# TODO : modify these so that they accept iterable / element wise operations
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/mathutils.py/blend/swapped operands of `-`