Easier to wrap C or C++ libraries?

Christian Heimes lists at cheimes.de
Sat Feb 14 21:08:45 CET 2009

Hrvoje Niksic schrieb:
> "Diez B. Roggisch" <deets at nospam.web.de> writes:
>> The answer is easy: if you use C, you can use ctypes to create a
>> wrapper - with pure python, no compilation, no platform issues.
> The last part is not true.  ctypes doesn't work on 64-bit
> architectures, nor does it work when Python is built with non-gcc Unix
> compilers

ctypes works on 64bit systems, too. However it's a pain in the ... back
to write code with ctypes that works across all platforms. I used to use
ctypes for wrapper but eventually I switched to Cython.


More information about the Python-list mailing list