def ranges_to_list(ranges_string):
    values = []
    for rg in ranges_string.split(','):
        if '-' in rg:
            first, last = map(int, rg.split('-'))
            values.extend(xrange(first, last + 1))
        else:
            values.append(int(rg))
    return values
sum(a[, start=0[, axis=(axis0, axis1, ...)]]) --> numeric or Array
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/misc.py/ranges_to_list--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/util/arrays.py/sum