3 ms·
Why would you use CTypes instead of CFFI?
by Derbasti 9y ago
Why would you use CTypes instead of CFFI?
- acdha 9y agoIt'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.