Message262342
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 |
|
Date |
User |
Action |
Args |
2016-03-24 13:27:15 | tilsche | set | recipients:
+ tilsche, amaury.forgeotdarc, belopolsky, meador.inge |
2016-03-24 13:27:15 | tilsche | set | messageid: <1458826035.51.0.974645660777.issue26628@psf.upfronthosting.co.za> |
2016-03-24 13:27:15 | tilsche | link | issue26628 messages |
2016-03-24 13:27:14 | tilsche | create | |
|