[Python-Dev] PEP 3118: Extended buffer protocol (new version)

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Apr 14 03:00:01 CEST 2007


Travis Oliphant wrote:

> It is more convenient to store any slicing information (so a memory view 
> object could store an arbitrary slice of another object) as offsets, 
> lengths, and skips which can be used to adjust the memory buffer 
> returned by base.

What happens if the base object changes its memory
layout in such a way that the stored offsets, lengths
and skips are no longer correct for the slice that
was requested?

--
Greg


More information about the Python-Dev mailing list