This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients Eric Wieser, serhiy.storchaka, skrah
Date 2020-09-07.17:17:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599499069.82.0.51852254334.issue39610@roundup.psfhosted.org>
In-reply-to
Content
memoryview can store anything, but only access and display
the native format. The reason is that conversions in the manner
of the struct module are very expensive.

You can construct all sorts of formats that memoryview cannot
handle:

>>> x = array(1, "c")
>>> x
array(b'1', dtype='|S1')
>>> y = memoryview(x)
>>> 
>>> list(y)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NotImplementedError: memoryview: unsupported format 1s


I don't think that the message is obscure, since all these
facts are documented.
History
Date User Action Args
2020-09-07 17:17:49skrahsetrecipients: + skrah, serhiy.storchaka, Eric Wieser
2020-09-07 17:17:49skrahsetmessageid: <1599499069.82.0.51852254334.issue39610@roundup.psfhosted.org>
2020-09-07 17:17:49skrahlinkissue39610 messages
2020-09-07 17:17:49skrahcreate