Python Feature Request: Allow changing base of member indices to 1

Alex Martelli aleax at mac.com
Sun Apr 15 01:02:47 EDT 2007


Steven D'Aprano <steve at REMOVE.THIS.cybersource.com.au> wrote:

> On Sat, 14 Apr 2007 20:34:46 -0700, Dan Bishop wrote:
> 
> > On Apr 14, 10:55 am, Dennis Lee Bieber <wlfr... at ix.netcom.com> wrote:
> > 
> >>         The FORTRAN family had started as 1-based (F95, and Ada, now allow
> >> for each array to have its own "base" => x : array (-10..10) of float).
> >> Pascal, I forget...
> > 
> > Pascal allows arbitrary array bases.  It's where Ada got the idea.
> 
> It does? Since when? 

Ever since Pascal existed, the syntax has been "array[lower..upper] of
sometype" -- no default value for lower (neither 0 nor 1 nor other).


Alex



More information about the Python-list mailing list