Author skrah
Recipients pitrou, skrah
Date 2011-08-24.19:09:57
SpamBayes Score 2.2135e-05
Marked as misclassified No
Message-id <>
In-reply-to <>
Antoine Pitrou <> wrote:
> That's rather funky. What should the right result be?

Basically [5, 4, 3, 2, 1] as bytes:


Looks like an off-by-one error.

I was a bit surprised that tobytes() automatically converts anything
to a C-contiguous array. The result can be completely disconnected
from the raw memory.

[The bug also exists for forward strides.]

array([1, 3, 5], dtype=uint64)
>>> m = memoryview(y)
>>> m.tobytes()
Date User Action Args
2011-08-24 19:09:59skrahsetrecipients: + skrah, pitrou
2011-08-24 19:09:57skrahlinkissue12834 messages
2011-08-24 19:09:57skrahcreate