PEP 276 Simple Iterator for ints (fwd)

Gareth McCaughan Gareth.McCaughan at pobox.com
Wed Nov 28 05:11:41 EST 2001


Greg Ewing wrote:

> James_Althoff at i2.com wrote:
> > 
> > Since this looks like a suggestion for replacing xrange in the general
> > case, did you have any thoughts on how one might specify a step value?
> 
> Not any particularly good ones. Maybe
> 
>    for 0 <= i/3 < 10:
> 
> to give 0, 3, 6, 9. But that's probably
> a bit too perverse!

-1. The values of i/3 over that sequence are 0,1,2,3. Ick.

-- 
Gareth McCaughan  Gareth.McCaughan at pobox.com
.sig under construc



More information about the Python-list mailing list