Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 285A2429E25 for ; Mon, 28 Nov 2011 04:37:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18hlnznyErGx for ; Mon, 28 Nov 2011 04:37:01 -0800 (PST) Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id B5E46431FB6 for ; Mon, 28 Nov 2011 04:37:01 -0800 (PST) Received: from mail.jade-hamburg.de (unknown [85.183.11.228]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cryptobitch.de (Postfix) with ESMTPSA id 5BFFC5067DD for ; Mon, 28 Nov 2011 13:36:58 +0100 (CET) Received: by mail.jade-hamburg.de (Postfix, from userid 401) id A98A5DF2A1; Mon, 28 Nov 2011 13:36:57 +0100 (CET) Received: from thinkbox.jade-hamburg.de (unknown [85.183.11.228]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: teythoon) by mail.jade-hamburg.de (Postfix) with ESMTPSA id F1C55DF28B; Mon, 28 Nov 2011 13:36:51 +0100 (CET) Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77) (envelope-from ) id 1RV0Rw-00036z-O1; Mon, 28 Nov 2011 13:36:44 +0100 Content-Type: multipart/mixed; boundary="===============6370563948987391493==" MIME-Version: 1.0 References: <1318198374-926-1-git-send-email-4winter@informatik.uni-hamburg.de> <87vcr39e9q.fsf@SSpaeth.de> To: Sebastian Spaeth , notmuch@notmuchmail.org In-Reply-To: <87vcr39e9q.fsf@SSpaeth.de> From: Justus Winter <4winter@informatik.uni-hamburg.de> Subject: Re: [PATCH 1/2] python: add classes to wrap all notmuch_*_t types Date: Mon, 28 Nov 2011 13:36:44 +0100 Message-Id: X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2011 12:37:06 -0000 --===============6370563948987391493== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Quoting Sebastian Spaeth (2011-11-02 08:25:53) >On Mon, 10 Oct 2011 00:12:53 +0200, Justus Winter <4winter@informatik.uni-= hamburg.de> wrote: >> Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de> >> --- >> bindings/python/notmuch/globals.py | 38 +++++++++++++++++++++++++++++= ++++++- > >Hi there, catching up on email, sorry for the delay. >I am not opposed to the change, but I fail to see any justification for >a whole lot more complexity either. What was wrong with the previous >approach? Well, quoting my commit message: > Add type information to the ctypes._FuncPtr wrappers and > use the wrapper classes instead of c_void_p for pointers > to notmuch_*_t. > > This enables the ctypes library to type check parameters > being handed to functions from the notmuch library. Justus --===============6370563948987391493== Content-Type: application/octet-stream MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=".signature" bG92ZSB1IGFsb3QgQCxACgo= --===============6370563948987391493==--