[Numpy-discussion] dtype subarray comparison

Mark Wiebe mwwiebe@gmail....
Thu Oct 21 18:15:02 CDT 2010

On Thu, Oct 21, 2010 at 2:47 PM, Pauli Virtanen <pav@iki.fi> wrote:

> Thu, 21 Oct 2010 14:25:24 -0700, Mark Wiebe wrote:
> [clip]
> > That sounds like it could be tricky to handle correctly, especially
> > since it should probably work to compare Fortran-order arrays with
> > non-Fortran ones.
> >
> > Does anything actually depend on this behavior?  Maybe it's something
> > that could change?
> I believe nothing in Numpy or Scipy depends on that. The main question is
> how much of 3rd party code is likely to use this feature.
> I suppose this quirk is not widely relied on, and as far as I know, the
> behavior has not been documented. For instance, Travis's Guide to Numpy
> says (on subdtype): "If a field whose dtype object has this attribute is
> retrieved, then the extra dimensions implied by the shape are tacked on to
> the end of the retrieved array."
> IMO, it should be possible to change this with little prior notice.
> A can of worms :)

I found the commit where Travis introduced the behaviour:



I didn't find any discussion in the mailing list or a trac ticket, so
hopefully Travis could elaborate on it?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20101021/a6335276/attachment.html 

More information about the NumPy-Discussion mailing list