[Python-Dev] RE: PEP 260: simplify xrange()

Greg Ward gward@python.net
Tue, 26 Jun 2001 21:24:32 -0400

On 27 June 2001, Delaney, Timothy said:
> If this is to be done, I would also propose that xrange() and range() be
> changed to allow passing in a straight-out sequence such as in the following
> code in order to get rid of the need for range(len(seq)):

I'm +1 on the face of it without stopping to consider any implications.
;-)  Some bits of syntactic sugar as just too good to pass up.
range(len(sequence)) is syntactic cod-liver oil.

Greg Ward - programmer-at-big                           gward@python.net
Blood is thicker than water, and much tastier.