New PEP (281): Loop Counter Iteration with range and xrange

Delaney, Timothy tdelaney at avaya.com
Mon Feb 11 18:29:15 EST 2002


> From: mlh at vier.idi.ntnu.no [mailto:mlh at vier.idi.ntnu.no]
> 
> I've submitted a draft PEP describing the idea of letting range and
> xrange accept sequences (or possibly, for xrange, any iterable) and
> return/yield one index per element. It's closely related to PEP 212,
> but instead of proposing new functions/syntax, it proposes extending
> the capabilities of existing functions.
> 
> The PEP is available at:
> 
>   http://www.python.org/peps/pep-0281.html

I've proposed this in the past and was told by the timbot IIRC that it
wouldn't get off the ground.

Tim Delaney




More information about the Python-list mailing list