Using Python for programming algorithms
sturlamolden
sturlamolden at yahoo.no
Tue May 20 13:51:55 EDT 2008
On May 20, 7:24 pm, Grant Edwards <gra... at visi.com> wrote:
>
> http://docs.python.org/lib/module-ctypes.html
>
Also see Cython (or Pyrex if you prefer the original). With Cython it
is easy to call C functions, but Cython also alleviates the need for C
to a great extent. The advantage of Cython over C + ctypes is of
course the readability of Python and the presence of Python built-in
types like strings, dicts and lists. Unfortunately, it is still a bit
difficult to use NumPy ndarrays with Cython or Pyrex. NumPy ndarrays
work very well with ctypes though.
http://www.cython.org/
More information about the Python-list
mailing list