Stefan Krah <[email protected]> added the comment:
I agree that it is a ctypes issue, itemsize should be equal to
struct.calcsize(fmt), which is never 0 for normal PEP-3118 types like the one
in the example.
[Pedantically, I think that the grammar would allow for an empty record "T{}"
that would have itemsize 0 but is of little use inside numpy.]
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32782>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com