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 <>
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:
Date User Action Args
2016-03-24 13:27:15tilschesetrecipients: + tilsche, amaury.forgeotdarc, belopolsky, meador.inge
2016-03-24 13:27:15tilschesetmessageid: <>
2016-03-24 13:27:15tilschelinkissue26628 messages
2016-03-24 13:27:14tilschecreate