[Numpy-discussion] Hi Travis

Pauli Virtanen pav@iki...
Fri Oct 29 17:10:36 CDT 2010


Hi Travis!

Fri, 29 Oct 2010 17:40:20 -0400, Travis Oliphant wrote:
> Thanks for pointing out the discussion.  This is an oversight.  The
> dtypes should not compare equal if the subarrays don't match.
> 
> If the patch looks OK, then we should accept it.

Another issue from the thread where you might want to chip in:

>>> x = np.zeros((2, 3), dtype=[('a', 'f8', (4,))])
>>> x.T['a'].shape
(4, 3, 2)
>>> x.T.copy()['a'].shape
(3, 2, 4)

Fortran-order is special-cased. We might want to change this to work like 
so:

>>> x.T['a'].shape
(3, 2, 4)

which is more predictable.

-- 
Pauli Virtanen



More information about the NumPy-Discussion mailing list