[Numpy-discussion] bug in http://www.scipy.org/NumPy_for_Matlab_Users

Keith Goodman kwgoodman@gmail....
Sun Apr 29 15:09:40 CDT 2007

On 4/29/07, Andrew Straw <strawman@astraw.com> wrote:
> No, the nth index of a Python sequence is a[n], where n starts from
> zero. Thus, if I want the nth dimension of array a, I want a.shape[n].
> I reverted the page to its original form and added a couple explanatory
> comments about zero vs one based indexing.

Would it be better to replace n with a number, say, 2?

size(a, 2)     a.shape[1]

More information about the Numpy-discussion mailing list