[Python-Dev] Propose to reject PEP 281 -- Loop Counter Iteration with range and xrange

Guido van Rossum gvanrossum at gmail.com
Fri Jun 17 06:03:51 CEST 2005


On 6/16/05, Raymond Hettinger <raymond.hettinger at verizon.net> wrote:
> The need for the indices() proposal was mostly met by PEP 279's
> enumerate() builtin.
> 
> Commenting on 279 before it was accepted for Py2.3, PEP 281's author,
> Magnus Lie Hetland, wrote, "I'm quite happy to have it make PEP 281
> obsolete."

Yes please. These examples are especially jarring:

    >>> range(range(5), range(10), range(2))
    [5, 7, 9]
    (etc.)

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list