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

Terry Reedy tjreedy at udel.edu
Thu Apr 19 20:15:45 CEST 2007


"Travis Oliphant" <oliphant.travis at ieee.org> wrote in message news:4626F2BC.8070608 at ieee.org... | I'm good with using an identifier to differentiate between an "allowed" | flag and a "require" flag. I'm not a big fan of | VERYLONGIDENTIFIERNAMES though. Just enough to understand what it | means but not so much that it takes forever to type and uses up | horizontal real-estate.

To save fingers and real-estate, adopt the following convention: by default, adjectives like writable and contiguous are 'required' unless tagged with 'OK', as in WRITABLE_OK.

Explain that in the flag doc just before the flags themselves. And yes, ND for N_DIMENSIONAL or MULTIDIMENSIONAL is also a great win that can also be explained in the same intro.

Terry Jan Reedy



More information about the Python-Dev mailing list