Thoughts on PEP284

David Eppstein eppstein at
Fri Sep 26 20:10:57 CEST 2003

In article <yu99brt7igy8.fsf at>,
 Andrew Koenig <ark at> wrote:

> Stephen> I doubt the need for exclusive ranges in integer for loops. I
> Stephen> also doubt the need for switching between different range
> Stephen> systems (inclusive, exclusive, half-open). IMO there is more
> Stephen> confusion than anything down those routes.
> Really?  I would expect a common usage to be:
>         for 0 <= index < len(list):
>              do something with list[index]

Isn't that what the new enumerate(list) is for?

David Eppstein            
Univ. of California, Irvine, School of Information & Computer Science

More information about the Python-list mailing list