Message97928
If you need also negative steps:
from itertools import count, takewhile
def irange(start, stop, step):
if step < 0:
cond = lambda x: x > stop
else:
cond = lambda x: x < stop
return takewhile(cond, (start + i * step for i in count())) |
|
Date |
User |
Action |
Args |
2010-01-17 01:09:40 | flox | set | recipients:
+ flox, georg.brandl, mm |
2010-01-17 01:09:40 | flox | set | messageid: <1263690580.05.0.267718676186.issue7721@psf.upfronthosting.co.za> |
2010-01-17 01:09:38 | flox | link | issue7721 messages |
2010-01-17 01:09:38 | flox | create | |
|