Author martin.panter
Recipients inada.naoki, larry, martin.panter, python-dev, serhiy.storchaka, vstinner
Date 2017-02-02.12:24:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486038270.99.0.492063865674.issue29300@psf.upfronthosting.co.za>
In-reply-to
Content
FYI Victor, you can make non-C-contiguous buffers by slicing memoryview:

>>> struct.unpack(">L", memoryview(b"1234")[::-1])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
BufferError: memoryview: underlying buffer is not C-contiguous

Can also use the built-in _testbuffer module to create stranger buffers.
History
Date User Action Args
2017-02-02 12:24:31martin.pantersetrecipients: + martin.panter, vstinner, larry, inada.naoki, python-dev, serhiy.storchaka
2017-02-02 12:24:30martin.pantersetmessageid: <1486038270.99.0.492063865674.issue29300@psf.upfronthosting.co.za>
2017-02-02 12:24:30martin.panterlinkissue29300 messages
2017-02-02 12:24:30martin.pantercreate