[Tutor] combining c and python
wprins at gmail.com
Mon Sep 17 20:43:15 CEST 2012
On 17 September 2012 18:43, Chris Fuller <cfuller084 at thinkingplanet.net> wrote:
> To run C alongside Python, you need to use the API.
> You can interface Cython with straight C, of course, but not in a way that
> will work with the standard interpreter.
Just to be clear, one of the main reasons for Cython's existence is to
allow for the easy writing of CPython extension modules in a more or
less Python like language which then gets compiled down to C for you
(rather than you having to write the C yourself.) Another is to allow
you to easily wrap C libraries in such a way as to allow you to make
them accessible from CPython.
More information about the Tutor