Message286772
| 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. |
|