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. http://cffi.readthedocs.org/ 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 https://cffi.readthedocs.org/en/release-0.7/ 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, Armin.
participants (1)
-
Armin Rigo