Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'yet.': 0.04; 'dan': 0.09; 'friday,': 0.09; 'subject:using': 0.09; 'cc:addr:python-list': 0.11; 'subject:Help': 0.11; 'python': 0.11; '24,': 0.16; 'cc:name:python list': 0.16; 'ctypes.': 0.16; 'pypy.': 0.16; 'subject:ctypes': 0.16; 'wrote:': 0.18; 'library': 0.18; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; '>': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; '(which': 0.31; 'ctypes': 0.31; 'allows': 0.31; 'subject:with': 0.35; 'received:209.85': 0.35; 'good.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'new': 0.61; 'to:addr:gmail.com': 0.65; 'latest': 0.67; 'believe': 0.68; '26,': 0.68; 'safer': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=u3yIvOIRVjY+wDsu08tXUSTcWtWEyK+EhWoFQwIswGo=; b=X6sw5IC7bPMMNrDBI+xsz57CaRWiOZSKz/emrp+f9cnzox8ag3J4eFxBrl4YYJcQge sfWStmHU2Z10UfQ1RnVGzRnAAci59gmBiHQQ+K4jBC07DiJ+MCxv79pH+1v91zP3QTjO tIxbheYXzg9EotqJgG38zoJt8ratvieJM6bHrqvWHYnZbF1TnY/NMCpIcEAnJpBIesSn TQI/TbNaq0w+hnFSUuqqYPNM+0kKcWUrbj+lyjdLVc0rC1L9UUuSJ+y+UQ+Cb0FNugAh 4ZQT5wl5PH5iprJF4VHvbu9tvsEj2e/B0xQdSO2Ij5wYZXlOCcXVUiDUqkmi/z/bx6XL bjEw== MIME-Version: 1.0 X-Received: by 10.229.4.205 with SMTP id 13mr9488551qcs.149.1369595414423; Sun, 26 May 2013 12:10:14 -0700 (PDT) In-Reply-To: <8de1876e-c157-4012-9921-b981e079327d@googlegroups.com> References: <8931a89c-0d00-4c8b-ba19-cf683d8d266d@googlegroups.com> <87mws4bsum.fsf@handshake.de> <8de1876e-c157-4012-9921-b981e079327d@googlegroups.com> Date: Sun, 26 May 2013 12:10:14 -0700 Subject: Re: Help with implementing callback functions using ctypes From: Dan Stromberg To: Shriramana Sharma Content-Type: multipart/alternative; boundary=000e0ce0743c29cc7904dda3c88a Cc: Python List X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369595417 news.xs4all.nl 15880 [2001:888:2000:d::a6]:44141 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46103 --000e0ce0743c29cc7904dda3c88a Content-Type: text/plain; charset=ISO-8859-1 On Sun, May 26, 2013 at 9:12 AM, Shriramana Sharma wrote: > On Friday, May 24, 2013 8:56:28 AM UTC+5:30, Dan Stromberg wrote: > > Cython is good. So is the new cffi, which might be thought of as a > > safer (API-level) version of ctypes (which is ABI-level). > > Hi -- can you clarify what is this new CFFI and where I can get it? In the > Python 3 library reference I seem to see only CTypes. > CFFI is like CTypes, but it allows you to do things like see C preprocessor symbols. https://cffi.readthedocs.org/en/release-0.6/ I don't think it comes with CPython, at least not yet. But I believe it comes with the latest Pypy. --000e0ce0743c29cc7904dda3c88a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

= On Sun, May 26, 2013 at 9:12 AM, Shriramana Sharma <samjnaa@gmail.com&= gt; wrote:
On Frid= ay, May 24, 2013 8:56:28 AM UTC+5:30, Dan Stromberg wrote:
> Cython is good. So is the new cffi, which might be thought of as a
> safer (API-level) version of ctypes (which is ABI-level).

Hi -- can you clarify what is this new CFFI and where I can get it? I= n the Python 3 library reference I seem to see only CTypes.

CFFI is like CTypes, but it allows you to do things like see C preprocessor= symbols.
I don't think it comes with CPython, at least not yet.=A0 But I believe= it comes with the latest Pypy.
--000e0ce0743c29cc7904dda3c88a--