On Sat, Apr 26, 2008 at 10:27 AM, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > On Fri, Apr 25, 2008 at 6:38 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > > OK, we are not converging in time for the release. > > So can we at least raise a TypeError on scalar > > indexing of matrices, so that we remain free to choose > > the ultimate behavior? > > > > Those who have spoke up have generally favored > > letting x[0] return a 1d array, if I count correctly. > > And I think that is the right "provisional" behavior. > > (As well as ultimate.) But many have not spoken up. > > > > That would be the most compatible with arrays, but won't it break a lot of > code?
Any change to the behavior of x[0] for matrices is going to break a lot of code. It actually seems like a good idea to me to make it an error for a while -- or maybe some kind of settable option -- to help people figure out where they need to fix their code. Better to get an error immediately. --bb _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion