Message99624
So could we replace
"If a larger range is needed, an alternate version can be crafted using the itertools module: islice(count(start, step), (stop-start+step-1)//step)."
by
"If a larger range is needed, an alternate version can be crafted using the itertools module: takewhile(lambda x: x<stop, (start+i*step for i in count()))." |
|
Date |
User |
Action |
Args |
2010-02-20 17:55:23 | mm | set | recipients:
+ mm, georg.brandl, rhettinger, flox |
2010-02-20 17:55:22 | mm | set | messageid: <1266688522.51.0.730151585926.issue7721@psf.upfronthosting.co.za> |
2010-02-20 17:55:21 | mm | link | issue7721 messages |
2010-02-20 17:55:21 | mm | create | |
|