Author skrah
Recipients docs@python, ezio.melotti, martin.panter, pitrou, r.david.murray, serhiy.storchaka, skrah
Date 2015-08-08.12:09:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439035761.32.0.469682900778.issue23756@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-08-08 12:09:21skrahsetrecipients: + skrah, pitrou, ezio.melotti, r.david.murray, docs@python, martin.panter, serhiy.storchaka
2015-08-08 12:09:21skrahsetmessageid: <1439035761.32.0.469682900778.issue23756@psf.upfronthosting.co.za>
2015-08-08 12:09:21skrahlinkissue23756 messages
2015-08-08 12:09:20skrahcreate