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

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 20 00:51:49 CEST 2007


Travis Oliphant wrote:

you would like to make the original memory read-only until you are done with the algorithm and have copied the data back into memory.

Okay, I see what you mean now.

Maybe this should be called Py_BUF_LOCK_CONTENTS or something to make the semantics clearer. Otherwise it could mean either that you don't intend to write to it, or that you require nobody ever to write to it.

-- Greg



More information about the Python-Dev mailing list