Thoughts on PEP284
eppstein at ics.uci.edu
Fri Sep 26 20:10:57 CEST 2003
In article <yu99brt7igy8.fsf at tinker.research.att.com>,
Andrew Koenig <ark at acm.org> 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 http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science
More information about the Python-list