CFFI 0.7 released

Armin Rigo arigo at
Thu Aug 1 17:59:38 CEST 2013

Hi all,

CFFI 0.7, the alternative C Foreign Function Interface, has been
released on PyPI.  It can be "pip installed" for CPython.  It is also
included with the just-released PyPy 2.1.

The main news (and only user-visible new feature) is
"ffi.new_handle(x)", which returns a "void *" corresponding to the
arbitrary Python object "x".  It can be passed around C code and later
retrieved with ffi.from_handle().  See the corresponding paragraph of about the lifetime of the
"void *".

Apart from that, there are a number of bugfixes (enums on Windows and
on ARM, some Win64 support, support for writing "short unsigned" or
"unsigned short", leaks of cycles involving cffi callbacks, ...).

A bientôt,


More information about the Python-announce-list mailing list