Message286772
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. |
|
Date |
User |
Action |
Args |
2017-02-02 12:24:31 | martin.panter | set | recipients:
+ martin.panter, vstinner, larry, methane, python-dev, serhiy.storchaka |
2017-02-02 12:24:30 | martin.panter | set | messageid: <1486038270.99.0.492063865674.issue29300@psf.upfronthosting.co.za> |
2017-02-02 12:24:30 | martin.panter | link | issue29300 messages |
2017-02-02 12:24:30 | martin.panter | create | |
|