This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flox
Recipients flox, georg.brandl, mm
Date 2010-01-17.01:09:37
SpamBayes Score 0.0016482705
Marked as misclassified No
Message-id <1263690580.05.0.267718676186.issue7721@psf.upfronthosting.co.za>
In-reply-to
Content
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()))
History
Date User Action Args
2010-01-17 01:09:40floxsetrecipients: + flox, georg.brandl, mm
2010-01-17 01:09:40floxsetmessageid: <1263690580.05.0.267718676186.issue7721@psf.upfronthosting.co.za>
2010-01-17 01:09:38floxlinkissue7721 messages
2010-01-17 01:09:38floxcreate