[Python-Dev] Omit Py_buffer struct from Stable ABI for Python 3.2?

Mark Dickinson dickinsm at gmail.com
Wed Jan 5 13:55:55 CET 2011


On Wed, Jan 5, 2011 at 12:31 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> Currently [1], the implementation and the documentation for PEP 3118's
> Py_buffer struct don't line up (there's an extra field in the
> implementation that the PEP doesn't mention).

I think there are actually two such fields:  smalltable and obj.

The need for obj is a little ugly:  as far as I can tell, it's
meaningless for a 3rd-party object that wants to export buffers---it's
only really used by the memoryview object and by internal Python
types.

Mark


More information about the Python-Dev mailing list