A range function with float increment
def arange(start, stop=None, step=None): if stop is None: stop = float(start) start = 0.0 if step is None: step = 1.0 cur = float(start) while cur < stop: yield cur cur += step
For python 2.2 (e.g. pys60) you need to do a "from __future__ import generators" first.
To get the list from the generator, use list(arange(...))