Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-announce-list@python.org Delivered-To: python-announce-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'retrieved': 0.05; 'pypy': 0.07; 'subject:released': 0.07; 'win64': 0.09; 'python': 0.11; 'windows': 0.15; 'armin.': 0.16; 'bient\xf4t,': 0.16; 'from:addr:arigo': 0.16; 'from:addr:tunes.org': 0.16; 'from:name:armin rigo': 0.16; 'leaks': 0.16; 'pypi.': 0.16; 'sender:addr:armin.rigo': 0.16; 'to:addr:python-announce-list': 0.16; 'sender:addr:gmail.com': 0.17; 'all,': 0.19; 'later': 0.20; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'involving': 0.30; 'message-id:@mail.gmail.com': 0.30; 'included': 0.31; 'code': 0.31; 'received:google.com': 0.35; 'there': 0.35; 'interface,': 0.36; 'url:org': 0.36; 'that,': 0.38; 'support,': 0.39; 'to:addr:python.org': 0.39; 'new': 0.61; 'news': 0.67; 'apart': 0.72; 'foreign': 0.74; '2.1.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=8vlJl3NYAAo1VXbFjhW+Nf56GdaDGI4WgAwXUUnuWjs=; b=y8/7w4+t8e7XV2eqAz0JhyyNzXtIjyeRxHrDr7WUPQchkogL4sqL1oxBrYZHoGGXaH ZcKjO9ubVAsA8ST3fl2mQAYKSxNfJFZ+zmr3yRsgiqxtKK05wKHr6QuI5PQeLx0Rvit7 dUo/wxrYeMkJ6d0kuzz8xd2sMhbSY0yexMwBNKwQ8Kw8om7icy1+QVNLKyR/5VvxC0qB JGaFUiTVudPxwbJYGbMinmSxG+POkxspQOV7BuSMj9F7RdSOlEtj+xKVF9JfSqy6sDyb zEn1UxgCqw8jH2c8BJw+r0btuPPpXx8GQU0Pih7rh3eT7MkQMw+YQumX86dYBzFEWZzN IBGQ== X-Received: by 10.152.44.162 with SMTP id f2mr1028120lam.68.1375372818408; Thu, 01 Aug 2013 09:00:18 -0700 (PDT) MIME-Version: 1.0 Sender: armin.rigo@gmail.com In-Reply-To: References: From: Armin Rigo Date: Thu, 1 Aug 2013 17:59:38 +0200 X-Google-Sender-Auth: HcIKGb6-fKsys64x-MAGphBPl2Y Subject: CFFI 0.7 released To: python-announce-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Thu, 01 Aug 2013 20:13:55 +0200 X-BeenThere: python-announce-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org List-Id: Announcement-only list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Approved: python-announce-list@python.org Newsgroups: comp.lang.python.announce Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375380836 news.xs4all.nl 15906 [2001:888:2000:d::a6]:42270 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python.announce:1017 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=F4t, Armin.