[Numpy-discussion] Best way to insert C code in numpy code

Sturla Molden sturla@molden...
Tue Sep 22 09:21:05 CDT 2009


René Dudfield skrev:
> Another way is to make your C function then load it with ctypes
Also one should beware that ctypes is a stable part of the Python 
standard library.

Cython is still unstable and in rapid development.

Pyrex is more stabile than Cython, but interfacing with ndarrays is harder.

If you have a requirement on not using experimental code, then Cython is 
not an option.











More information about the NumPy-Discussion mailing list