def prev_start_segment(str,is_segment):
    str="".join(str)
    result=[]
    prev=0
    for start in mark_start_segment_index(str,is_segment):
        result[len(result):start+1]=[prev for x in range(start-len(result)+1)]
        prev=start
    result[len(result):len(str)]=[prev 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/prev_start_segment/swapped operands of `-`