[Python-3000] optimizing [x]range

Johan Dahlin jdahlin at async.com.br
Sun Jul 29 19:46:55 CEST 2007


Guido van Rossum wrote:
[..]
>> Were you drunk at the time? :-)
No, I just remember that I made that mistake several times.
[..]
> > It seems to be used quite widely already;
> >
> > 
http://google.com/codesearch?hl=en&q=+%5E.*if%5Cs%2B.*%5Cs%2Bin%5Cs%2Brange%5C(.*%24&start=10&sa=N
> >
>> Sorry, 50 hits is not "quite widely".

Not everything is known to google's code search. I'm just saying that 
there's code
out there that uses this syntax.
>> Did you find *any* examples using a step > 1?

No, I didn't. I'm not arguing for that use case either, I'm mainly 
interested
in the use case where step == 1.
Johan


More information about the Python-3000 mailing list

AltStyle によって変換されたページ (->オリジナル) /