Allowing zero-dimensional subscripts

greg greg at cosc.canterbury.ac.nz
Sat Jun 10 04:51:02 EDT 2006


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



More information about the Python-list mailing list