PEP 3118 is the Revised Buffer Protocol for the [tag:python] C-API.
PEP 3118 is the Revised Buffer Protocol for the python C-API. Supported natively in Python 3 and backported to the 2.x series starting at Python 2.6, PEP 3118 specifies the use of the Py_buffer
structure, and the variety of API functions provided for managing both the Py_buffer
lifecycle (at the C-API level) and the new memoryview
objects (at the Python level).
- The PEP 3118 specification: https://www.python.org/dev/peps/pep-3118/
- Python 2.x series documentation: https://docs.python.org/2/c-api/buffer.html
- Python 3.x series documentation: https://docs.python.org/3.3/c-api/buffer.html
- Related tags: pybuffer, memoryview