Pauli Virtanen <p...@iki.fi> added the comment:

The flags don't seem to be meant to describe the properties of the buffer, only 
what the exporter is required to fill in. STRIDES does not imply necessarily 
discontinuous, only that the `strides` field is present. The 
C_/F_/ANY_CONTIGUOUS flags imply that the memory layout of an n-dim array is 
C/Fortran/either contiguous. Why these flags imply STRIDES is probably to make 
the result unambiguous, and because typically when dealing with n-d arrays you 
usually need to know the strides anyway. `NULL` `strides` implies C-contiguous, 
so the CONTIG flag does not imply STRIDES (no idea why it's different from 
PyBUF_C_CONTIGUOUS).

----------

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

Reply via email to