SWIG vs Pyrex vs Cython -- a quicky question
robertc at robertcollins.net
Mon Sep 21 09:54:08 BST 2009
On Mon, 2009-09-21 at 07:35 +0100, Russel Winder wrote:
> Not an on-topic question I guess, but the audience here is likely
> knowledgable on this topic, so makes a great sample.
> For calling C functions from Python test code, to unit test the C code,
> is it better to use SWIG or Pyrex or Cython? ctypes is not a candidate
> I think as this is not connecting to a library, shared object or DLL.
So, to unit test C, I'd use 'check', a good C unit testing library. It
will handle segfaults and other nasties.
To bind C to python, I'd usually use Pyrex/Cython first, SWIG or ctypes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090921/cf8e1e7b/attachment-0002.pgp
More information about the bazaar