Re:Interfacing Python and C: Advanced “ctypes” Features
by Derbasti on Tuesday November 07, 2017 @11:14AM
(#15644581)
Why would you use CTypes instead of CFFI?
[ Parent
| on HN ]
Re:Interfacing Python and C: Advanced “ctypes” Features
by acdha on Tuesday November 07, 2017 @11:33AM
(#15644769)
It's in the standard library and doesn't require having the whole C toolchain available and working (non-trivial if you're not talking about standard things in /usr/{include,lib}).
If all you need is a simple interface to a couple of functions and you want portability across system variants, that might be the path of least resistance and the performance is often negligible if the amount of work being done in the C code is significant.