def cleanPaths(ps, solutions): offset = 0 for s, i in zip(solutions, xrange(100000)): for j in range(s - offset): ps.erasePath(i) offset += 1 offset += 1
def cleanPaths(ps, solutions): offset = 0 for i, s in enumerate(solutions): for j in range(s - offset): ps.erasePath(i) offset += 1 offset += 1