[docs] [issue16518] add "buffer protocol" to glossary
report at bugs.python.org
Fri Nov 23 22:54:13 CET 2012
Stefan Krah added the comment:
Antoine Pitrou <report at bugs.python.org> wrote:
> > PEP-3118 Py_buffer structs are essentially how NumPy works internally.
> Well, we should still write a Python documentation, not a NumPy
> documentation (on this tracker anyway). Outside of NumPy, there's little
> use for multi-dimensional objects.
Ok, but people should not be surprised if their (Python) array.array() of
double or their array of ctypes structs is silently accepted by some byte
How about "object does not provide a byte buffer" for error messages
and "(byte) buffer provider" as a shorthand for "any buffer provider
that exposes its memory as a sequence of unsigned bytes in response
to a PyBUF_SIMPLE request"?
Python tracker <report at bugs.python.org>
More information about the docs