Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #56649 > unrolled thread

Re: Passing C pionters to Python for use with cffi

Started bydieter <dieter@handshake.de>
First post2013-10-11 08:09 +0200
Last post2013-10-11 08:09 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Passing C pionters to Python for use with cffi dieter <dieter@handshake.de> - 2013-10-11 08:09 +0200

#56649 — Re: Passing C pionters to Python for use with cffi

Fromdieter <dieter@handshake.de>
Date2013-10-11 08:09 +0200
SubjectRe: Passing C pionters to Python for use with cffi
Message-ID<mailman.986.1381471792.18130.python-list@python.org>
Eric Frederich <eric.frederich@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).

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web