[Python-Dev] Understanding the buffer API

Stefan Krah stefan at bytereef.org
Sat Aug 4 17:43:58 CEST 2012


Serhiy Storchaka <storchaka at gmail.com> wrote:
> 4. The consumer has NOT requested writable buffer, can readonly flag
> of provided buffer be false anyway?

Yes, per the new documentation. This is not explicitly mentioned in the PEP
but was existing practice and greatly simplifies several things:

http://docs.python.org/dev/c-api/buffer.html#PyBUF_WRITABLE


Stefan Krah





More information about the Python-Dev mailing list