[Python-Dev] Understanding the buffer API

Serhiy Storchaka storchaka at gmail.com
Sat Aug 4 17:25:40 CEST 2012


On 04.08.12 17:51, Nick Coghlan wrote:
> I took Jeff's question as being slightly different and applying in the
> following situations:
>
> 1. If the consumer has NOT requested format data, can the provider
> return accurate format data anyway, if that's easier than returning
> NULL but is consistent with doing so?
>
> 2. The consumer has NOT requested shape data, can shape data be
> provided anyway, if that's easier than returning NULL but is
> consistent with doing so?
>
> 3. The consumer has NOT requested strides data, can strides data be
> provided anyway, if that's easier than returning NULL but is
> consistent with doing so?

4. The consumer has NOT requested writable buffer, can readonly flag of 
provided buffer be false anyway?




More information about the Python-Dev mailing list