[Python-ideas] [Python-Dev] Inclusive Range

Bruce Leban bruce at leapyear.org
Wed Oct 6 01:48:08 CEST 2010

With 1-based indexes, sometimes you have to add 1 and sometimes subtract 1
and sometimes neither. 0-based indexes avoid that problem.

Personally, I think changing any of this behavior has about the same
probability of success as adding

--- Bruce

On Tue, Oct 5, 2010 at 4:33 PM, Greg Ewing <greg.ewing at canterbury.ac.nz>wrote:

> Carl M. Johnson wrote:
>> I'm
>> just curious about whether starting programmers have a strong
>> preference for one or the other convention or whether both are
>> confusing.
> Starting programmers don't have enough experience to judge
> which will be less confusing in the long run, so their
> opinion shouldn't be given overriding weight when designing
> a language intended for real-life use.
> Speaking as an experienced programmer, I'm convinced that
> Python has made the right choice. Not because Dijkstra or
> any other authority says so, but because of my own personal
> experiences.
> --
> Greg
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20101005/83acae01/attachment.html>

More information about the Python-ideas mailing list