def floatRange(x, y, step):
    while x < y:
        yield x
        x += step
Variation on range(), since step values for dashed lines may be floats.
dataset/ETHPy150Open adobe-type-tools/box-drawing/boxDrawing.py/floatRange