Message248263
I would commit this, except that I'm not too happy with the use of
the term "bytes-like" in general. Yesterday I mistyped this:
>>> import ctypes
>>> x = ctypes.c_double
>>> m = memoryview(x)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: memoryview: a bytes-like object is required, not '_ctypes.PyCSimpleType'
The previous error message was (changed in #16518) was:
"_ctypes.PyCSimpleType does not support the buffer interface".
Which I find much clearer. Memoryviews (for better or worse,
but PEP-3118 was accepted) are Mini-NumPy-arrays. I'm still not
sure if we should hide that from users. |
|
Date |
User |
Action |
Args |
2015-08-08 12:09:21 | skrah | set | recipients:
+ skrah, pitrou, ezio.melotti, r.david.murray, docs@python, martin.panter, serhiy.storchaka |
2015-08-08 12:09:21 | skrah | set | messageid: <1439035761.32.0.469682900778.issue23756@psf.upfronthosting.co.za> |
2015-08-08 12:09:21 | skrah | link | issue23756 messages |
2015-08-08 12:09:20 | skrah | create | |
|