Message143351
As a (Windows) user, I would like to be able to download any working pre-compiled shared library (.dll) and access it via ctypes. The particular compiler used to compile cpythonx.y.z should not determine whether a Pythonx.y program works. The use of VSC2008 is not part of the Python3.2 definition. So I am in favor of features than makes ctypes more likely to work.
I understand that this should be easy if the datatypes sent and received are standard ints, floats, and arrays thereof, since the bit patterns are then knowable. I gather that the problem with custom bitfields is that the resulting bit pattern format is not only not documented in the .dll, but is also not determined by the external documentation (the .h files).
Does anyone know how Cython, for instance, handles this problem? Stephen Behnel recommends it as an alternative to ctypes. Does it even try to deal with bitfields? |
|
Date |
User |
Action |
Args |
2011-09-01 20:13:11 | terry.reedy | set | recipients:
+ terry.reedy, amaury.forgeotdarc, meador.inge, santoso.wijaya, vladris |
2011-09-01 20:13:11 | terry.reedy | set | messageid: <1314907991.15.0.43709269752.issue12528@psf.upfronthosting.co.za> |
2011-09-01 20:13:10 | terry.reedy | link | issue12528 messages |
2011-09-01 20:13:10 | terry.reedy | create | |
|