Python "why" questions
python at mrabarnett.plus.com
Sun Aug 8 20:05:19 CEST 2010
Default User wrote:
> Not to prolong a good "food fight", but IIRC, many years ago in QBasic,
> one could choose
> OPTION BASE 0
> OPTION BASE 1
> to make arrays start with element  or element , respectively.
> Could such a feature be added to Python without significantly bloating
> the interpreter?
> Then, if starting with  "works for you", nothing really changes. And
> if starting with  "works for you", then you are not made to feel like
> a second-class citizen, and about as welcome as a dimwit at the Mensa
If you changed the base then you'd break the standard library, unless
everyone altered their code to compensate.
It's all part of learning a programming language. Some have 0-based
indexing, others have 1-based indexing; some have mutable strings,
others have immutable strings, still others don't have 'proper' strings.
Just learn to adapt.
More information about the Python-list