[Python-Dev] Extended Buffer Interface/Protocol

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 21 23:40:49 CET 2007


Neil Hodgson wrote:

>    I think one of the motivations for discontiguous segments was for
> split buffers which are commonly used in text editors.

Note that this is different from the case of an array
of pointers to arrays, which is a multi-dimensional
array structure, whereas a split buffer is a concatenation
of two (possibly different sized) one-dimensional arrays.

So an array-of-pointers interface wouldn't be a direct
substitute for the existing multi-segment buffer
interface.

--
Greg


More information about the Python-Dev mailing list