Allowing zero-dimensional subscripts

Tim N. van der Leeuw tim.leeuwvander at nl.unisys.com
Sat Jun 10 05:02:27 EDT 2006


greg wrote:
> Carl Banks wrote:
>
> > Think of it this way: an array with n-dimensions of length 3 would have
> > 3**n total entries.  How many entries would a 0-dimensional array have?
> >  3**0 == 1.
>
> Er, hang on a minute. Along which dimension of this
> 0-dimensional array does it have a length of 3? :-)
> 
> --
> Greg

Against all zero of them... ;-)

Cheers,

--Tim




More information about the Python-list mailing list