Message334497
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 |
|
Date |
User |
Action |
Args |
2019-01-28 22:52:34 | pitrou | set | recipients:
+ pitrou, skrah |
2019-01-28 22:52:32 | pitrou | set | messageid: <1548715952.77.0.960120317133.issue35845@roundup.psfhosted.org> |
2019-01-28 22:52:32 | pitrou | link | issue35845 messages |
2019-01-28 22:52:32 | pitrou | create | |
|