[Python-Dev] Allocation of shape and strides fields in Py_buffer

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Dec 9 06:46:14 CET 2008


Antoine Pitrou wrote:

> (of course complex schemes can be devised where the callee maintains its own
> separate storage for shape and strides, but I don't think we want to go there)

But that's exactly where you're supposed to be going.
If the object providing the buffer has variable-sized
shape and strides arrays, it has to manage the memory
for them somehow.

-- 
Greg


More information about the Python-Dev mailing list