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 Charles Machalow
Recipients Charles Machalow, amaury.forgeotdarc, belopolsky, eryksun, meador.inge, mleroy003, ztane
Date 2017-11-17.04:49:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510894153.41.0.213398074469.issue29753@psf.upfronthosting.co.za>
In-reply-to
Content
Antti, is there a place in the ctypes documentation that explicitly says ctypes is not meant to be used cross-platform? If not, shouldn't that be mentioned?

I think ultimately ctypes should default to standard OS/compiler behavior, but should allow the flexibility for one to override for cross-platform interchangeability.

In the C++ code here, the code is explicitly checking if Windows (or GCC) to choose behavior. In theory, that could be changed to allow runtime-choice for packing behavior. 

Of course, that is probably best for a feature issue. For this one, I'd just like to have the behavior on Linux match GCC, as that is the definitive bug here as our example has shown.
History
Date User Action Args
2017-11-17 04:49:13Charles Machalowsetrecipients: + Charles Machalow, amaury.forgeotdarc, belopolsky, meador.inge, eryksun, ztane, mleroy003
2017-11-17 04:49:13Charles Machalowsetmessageid: <1510894153.41.0.213398074469.issue29753@psf.upfronthosting.co.za>
2017-11-17 04:49:13Charles Machalowlinkissue29753 messages
2017-11-17 04:49:12Charles Machalowcreate