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 martin.panter
Recipients larry, martin.panter, methane, 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, methane, 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