Eric Frederich <eric.freder...@gmail.com> writes:

> I'm extending an application that supports customization using the C
> language.
> I am able to write standalone python applications that use the C API's
> using cffi.
> This is good, but only a first step.
>
> This application allows me to register code that will run on various events
> but it has to be C code.

You might want to have a look at "cython".

"cython" is a compiler compiling source programs in a Python
extension into "C". The corresponding "C" functions can
then be called from "C" (you may need to annotate the
functions used in this way to get proper "GIL" ("Global Interpreter Lock")
handling).

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to