Message139861
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). |
|
Date |
User |
Action |
Args |
2011-07-05 12:11:52 | pv | set | recipients:
+ pv, teoliphant, mark.dickinson, ncoghlan, rupole, kermode, pitrou, vstinner, skrah, jcon, petri.lehtinen |
2011-07-05 12:11:52 | pv | set | messageid: <1309867912.23.0.45707467607.issue10181@psf.upfronthosting.co.za> |
2011-07-05 12:11:51 | pv | link | issue10181 messages |
2011-07-05 12:11:51 | pv | create | |
|