Message176256
Antoine Pitrou <report@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
consuming function.
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"? |
|
Date |
User |
Action |
Args |
2012-11-23 21:54:13 | skrah | set | recipients:
+ skrah, terry.reedy, pitrou, ezio.melotti, eric.araujo, chris.jerdonek, docs@python |
2012-11-23 21:54:13 | skrah | link | issue16518 messages |
2012-11-23 21:54:13 | skrah | create | |
|