def next_start_segment(str,is_segment):
    str="".join(str)
    result=[]
    for start in mark_start_segment_index(str,is_segment):
        result[len(result):start]=[start for x in range(start-len(result))]
    result[len(result):len(str)]=[len(str) for x in range(len(result)+1-len(str))]            
    return result
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/pyreadline/lineeditor/wordmatcher.py/next_start_segment/swapped operands of `-`