Message142894
memoryview.tobytes() converts a non-contiguous array to
a contiguous representation. This result is not right:
>>> from numpy import *
>>> x = array([1,2,3,4,5], dtype="B")
>>> y = x[::-1]
>>> y
array([5, 4, 3, 2, 1], dtype=uint8)
>>> m = memoryview(y)
>>> m.tobytes()
'\x04\x03\x02\x01\x05'
>>> |
|
Date |
User |
Action |
Args |
2011-08-24 18:45:05 | skrah | set | recipients:
+ skrah |
2011-08-24 18:45:05 | skrah | set | messageid: <1314211505.01.0.756597830367.issue12834@psf.upfronthosting.co.za> |
2011-08-24 18:45:04 | skrah | link | issue12834 messages |
2011-08-24 18:45:04 | skrah | create | |
|