Sebastian Berg added the comment:

Well, the 9223372036854775807 is certainly no good for production code and we 
would never have it in a release version, it is just there currently to expose 
if there are more problems. However I don't care what happens on overflow (as 
long as it is not an error).

Note that the stride here is on a dimension with shape 1. The only valid index 
is thus always 0 and 0*9223372036854775807=0, so the stride value does not 
actually matter when calculating offsets into the array. You could simply set 
it to 80 to get something that would be considered C-contiguous or to 8 to get 
something that is considered F-contiguous. But both is the case in a way, so 
just "cleaning up" the strides does not actually get you all the way.

----------

_______________________________________
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