[Numpy-discussion] prerelease proposal for matrix behavior

Charles R Harris charlesr.harris at gmail.com
Fri Apr 25 21:27:56 EDT 2008


On Fri, Apr 25, 2008 at 6:38 PM, Alan G Isaac <aisaac at american.edu> 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?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080425/d5675603/attachment.html>


More information about the NumPy-Discussion mailing list