A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-April/072606.html below:

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

[Python-Dev] PEP 3118: Extended buffer protocol (new version) [Python-Dev] PEP 3118: Extended buffer protocol (new version)Travis Oliphant oliphant.travis at ieee.org
Sat Apr 14 08:33:05 CEST 2007
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

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4