[Python-Dev] PEP 3118: Extended buffer protocol (new version) (original) (raw)
Travis Oliphant oliphant.travis at ieee.org
Sat Apr 14 08:33:05 CEST 2007
- Previous message: [Python-Dev] PEP 3118: Extended buffer protocol (new version)
- Next message: [Python-Dev] function for counting items in a sequence
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greg Ewing wrote:
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?
When the memory view object gets the buffer info again from the base object, it will be able to figure this out and raise an error.
-Travis
- Previous message: [Python-Dev] PEP 3118: Extended buffer protocol (new version)
- Next message: [Python-Dev] function for counting items in a sequence
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]