def get_list_from_str(str_, idelim=',', typefunc=int):
    return [typefunc(x.strip()) for x in str_.split(idelim)]
Split a string of things separated by commas & cast/wrap with typefunc
dataset/ETHPy150Open westurner/pyline/pyline.py/get_list_from_str