Author pitrou
Recipients pitrou, skrah
Date 2019-01-28.22:52:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548715952.77.0.960120317133.issue35845@roundup.psfhosted.org>
In-reply-to
Content
Well, raw_memory() would avoid a copy, which is useful.

As for tobytes(), if we want to follow NumPy, we can have 'F' mean if F-contiguous, 'C' otherwise:

>>> a = np.arange(12, dtype='int8').reshape((3,4))                                                                             
>>> a.tobytes('A')                                                                                                             
b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b'
>>> a.tobytes('A') == a.T.tobytes('A')                                                                                         
True
History
Date User Action Args
2019-01-28 22:52:34pitrousetrecipients: + pitrou, skrah
2019-01-28 22:52:32pitrousetmessageid: <1548715952.77.0.960120317133.issue35845@roundup.psfhosted.org>
2019-01-28 22:52:32pitroulinkissue35845 messages
2019-01-28 22:52:32pitroucreate