Message235107
Cython doesn't follow the spec though (use Python 3):
from _testbuffer import *
cpdef foo():
cdef unsigned char[:] v = bytearray(b"testing")
nd = ndarray(v, getbuf=PyBUF_ND)
print(nd.suboffsets)
nd = ndarray(v, getbuf=PyBUF_FULL)
print(nd.suboffsets)
Cython hands out suboffsets even for a PyBUF_ND request, which is
definitely wrong. For a PyBUF_FULL request they should only be
provided *if needed*. |
|
Date |
User |
Action |
Args |
2015-01-31 13:03:16 | skrah | set | recipients:
+ skrah, pitrou, rhansen, seberg |
2015-01-31 13:03:16 | skrah | set | messageid: <1422709396.8.0.304975685749.issue23352@psf.upfronthosting.co.za> |
2015-01-31 13:03:16 | skrah | link | issue23352 messages |
2015-01-31 13:03:16 | skrah | create | |
|