…be 0 (
pythonGH-5576)
The itemsize returned in a memoryview of a ctypes array is now computed from the item type, instead of dividing the total size by the length and assuming that the length is not zero.
(cherry picked from commit
84bc6a4)
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
The itemsize returned in a memoryview of a ctypes array is now computed from the item type, instead of dividing the total size by the length and assuming that the length is not zero.
(cherry picked from commit 84bc6a4)
Co-authored-by: Eric Wieser wieser.eric@gmail.com