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 skrah
Recipients skrah
Date 2011-08-24.18:45:04
SpamBayes Score 0.004566739
Marked as misclassified No
Message-id <1314211505.01.0.756597830367.issue12834@psf.upfronthosting.co.za>
In-reply-to
Content
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'
>>>
History
Date User Action Args
2011-08-24 18:45:05skrahsetrecipients: + skrah
2011-08-24 18:45:05skrahsetmessageid: <1314211505.01.0.756597830367.issue12834@psf.upfronthosting.co.za>
2011-08-24 18:45:04skrahlinkissue12834 messages
2011-08-24 18:45:04skrahcreate