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

2005-06-16 Thread Raymond Hettinger
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.


Raymond

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2005-06-16 Thread Guido van Rossum
On 6/16/05, Raymond Hettinger [EMAIL PROTECTED] 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/)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com