PEP 3118: Py_buffer's Foundational Protocol Origins

The `Py_buffer` struct and the modern Buffer Protocol were introduced in PEP 3118 for Python 3.0 (and backported to Python 2.6) to standardize and improve memory sharing, replacing older, limited buffer interfaces and enabling efficient, zero-copy data exchange between Python objects and C extensions.

Sources

Open the full topic