[Python-Dev] (ctypes example) libffi embedded in CPython

francis francismb at email.de
Sat Mar 14 12:34:48 CET 2015


Hi
> 
> It might be a matter of taste, but I don't find declaring C functions
> any more awkward than using strange interface that ctypes comes with.
> the equivalent in cffi would be ffi.cast("double (*)()", x)

- Could you please elaborate on "using strange interface"?
- Is there an easy way to convert the current code using ctypes to
cffi?

Thanks in advance!
francis



More information about the Python-Dev mailing list