[Numpy-discussion] memoryview shape/strides representation for ndim = 0

Stefan Krah stefan-usenet@bytereef....
Tue Aug 23 07:16:40 CDT 2011


Mark Dickinson <mdickinson@enthought.com> wrote:
> On Mon, Aug 22, 2011 at 1:30 PM, Stefan Krah <stefan-usenet@bytereef.org> wrote:
> > Numpy arrays and memoryview currently have different representations
> > for shape and strides if ndim = 0:
[...]
> > I think the Numpy representation is nicer. Also, I think that memoryviews
> > should attempt to mimic the underlying object as closely as possible.
> 
> Agreed on both points.  If there's no good reason for m.shape and
> m.strides to be None, I think it should be changed.

Excellent, I'll go ahead with it then (in the feature repo).


Stefan Krah




More information about the NumPy-Discussion mailing list