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 tilsche
Recipients amaury.forgeotdarc, belopolsky, meador.inge, tilsche
Date 2016-03-24.13:27:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458826035.51.0.974645660777.issue26628@psf.upfronthosting.co.za>
In-reply-to
Content
So after some more pondering about the issue I read the documentation again:

> Warning ctypes does not support passing unions or structures with bit-fields to functions by value.

Previously I always read this as 'does not support passing unions with bit-fields'... I guess it is meant otherwise. IMHO this should be formulated more clearly, like: "does not support passing structures with bit-fields or unions to functions by value.".

Also I would strongly argue to generally prohibit this with an exception instead of just trying if libffi maybe handles this on the current architecture. libffi clearly does not support unions. This just introduces subtle bugs.

See also: https://github.com/atgreen/libffi/issues/33
History
Date User Action Args
2016-03-24 13:27:15tilschesetrecipients: + tilsche, amaury.forgeotdarc, belopolsky, meador.inge
2016-03-24 13:27:15tilschesetmessageid: <1458826035.51.0.974645660777.issue26628@psf.upfronthosting.co.za>
2016-03-24 13:27:15tilschelinkissue26628 messages
2016-03-24 13:27:14tilschecreate