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 terry.reedy
Recipients amaury.forgeotdarc, meador.inge, santoso.wijaya, terry.reedy, vladris
Date 2011-09-01.20:13:10
SpamBayes Score 2.6050845e-10
Marked as misclassified No
Message-id <1314907991.15.0.43709269752.issue12528@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2011-09-01 20:13:11terry.reedysetrecipients: + terry.reedy, amaury.forgeotdarc, meador.inge, santoso.wijaya, vladris
2011-09-01 20:13:11terry.reedysetmessageid: <1314907991.15.0.43709269752.issue12528@psf.upfronthosting.co.za>
2011-09-01 20:13:10terry.reedylinkissue12528 messages
2011-09-01 20:13:10terry.reedycreate