Author flox
Recipients flox, georg.brandl, mm
Date 2010-01-16.22:56:36
SpamBayes Score 0.000130077
Marked as misclassified No
Message-id <>
Confirmed. The snippet works for 3.1 and 2.7a2.

from itertools import count, islice
irange = lambda start, stop, step: islice(count(start, step), (stop-start+step-1)//step)

The documentation needs update for 2.6 only.

This kind of snippet seems backward compatible for 2.6:
irange = lambda start, stop, step: islice(count(start), 0, stop, step)
Date User Action Args
2010-01-16 22:56:38floxsetrecipients: + flox, georg.brandl, mm
2010-01-16 22:56:38floxsetmessageid: <>
2010-01-16 22:56:36floxlinkissue7721 messages
2010-01-16 22:56:36floxcreate