Sebastian Berg added the comment:

To be clear, the important part here, is that to me all elements *can* be 
accessed using that scheme. It is not correct to assume that `stride[-1]` or 
`stride[0]` is actually equal to `itemsize`.

In other words, you have to be able to pass the pointer to the start of a 
c-contiguous array into some C-library that knows nothing about strides without 
any further thinking. The 0-strides badly violate that.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22445>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to