[Python-Dev] Allocation of shape and strides fields in Py_buffer (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Dec 9 06:46:14 CET 2008
- Previous message: [Python-Dev] Allocation of shape and strides fields in Py_buffer
- Next message: [Python-Dev] Allocation of shape and strides fields in Py_buffer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Allocation of shape and strides fields in Py_buffer
- Next message: [Python-Dev] Allocation of shape and strides fields in Py_buffer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]