This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ammar2
Recipients Amir Aslan Haghrah, ammar2
Date 2018-12-22.17:19:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545499176.32.0.0770528567349.issue35562@roundup.psfhosted.org>
In-reply-to
Content
This has to do with C struct packing and alignment. You are likely on a 64-bit computer and thus your structs are aligned to 8 byte (64 bit) boundaries.

https://docs.python.org/2/library/ctypes.html#structure-union-alignment-and-byte-order

Create an equivalent C program and you will notice the same behavior.
History
Date User Action Args
2018-12-22 17:19:38ammar2setrecipients: + ammar2, Amir Aslan Haghrah
2018-12-22 17:19:36ammar2setmessageid: <1545499176.32.0.0770528567349.issue35562@roundup.psfhosted.org>
2018-12-22 17:19:36ammar2linkissue35562 messages
2018-12-22 17:19:36ammar2create