On Wed, Jul 21, 2010 at 10:58 AM, M Trumpis <mtrum...@berkeley.edu> wrote:

> Separately, regarding the permissible axis labels, I think we must not
> allow any enumerated axis labels (ie, ints and floats). I don't
> remember if there was a consensus about that yesterday. We don't have
> the flexibility in the ndarray API to allow for the expression
> darr.method(axis=2) to mean not the 2nd dimension, but the Axis with
> label==2

So the axis label rule could be either:

1. str only
2. Any hashable object except int or float

#1 is looking better and better. Plus you already coded it :)
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to