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 17478431FB6 for ; Tue, 6 Dec 2011 04:35:28 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.184 X-Spam-Level: * X-Spam-Status: No, score=1.184 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=1.274, T_MIME_NO_TEXT=0.01] 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 Dt1hMOkSzMqL for ; Tue, 6 Dec 2011 04:35:27 -0800 (PST) Received: from homiemail-a22.g.dreamhost.com (unknown [208.97.132.74]) by olra.theworths.org (Postfix) with ESMTP id B0C83429E36 for ; Tue, 6 Dec 2011 04:35:25 -0800 (PST) Received: from homiemail-a22.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a22.g.dreamhost.com (Postfix) with ESMTP id 736091A8069; Tue, 6 Dec 2011 04:35:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=dzPraet+AgBUEzVegtwt3aiXShp +0IlP9puOgi/F6VoMms6QPv+Wn5PzaYn2WWOmCviJEcef5kmcrEbR+DsE/KsVgJk Vq6S6oA7QVph0hELOL/X6O2GoZwZIdfOBMRnlSe9iTAy1ubpCT9vmvGTvpIMsJVu H3jcFQPUsMMuYe2c= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=GweCvlveviOOWRu8YxFeV6V3En4=; b=T SJT1xyd6Ba/XKvgJNwSBX0nINV1S2o6aPbCnMllRhp7qRIBLTjGrNvhsXVOxVmUt e3OT4W+2r6o/mh3ukVdMhcRXiWfnXY3fOA8Iy+EGneyZ9ykPp/x1tNUIvtnnpmx+ 7+O5nmtIcwHw9XJPluKfrwjhlbma5cVBLdYYoZFVrc= Received: from spaetzbook.sspaeth.de (unknown [176.46.199.176]) (Authenticated sender: fax@sspaeth.de) by homiemail-a22.g.dreamhost.com (Postfix) with ESMTPA id D2C9B1A8063; Tue, 6 Dec 2011 04:35:11 -0800 (PST) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Tue, 06 Dec 2011 13:35:02 +0100 From: Sebastian Spaeth To: Thomas Jost , notmuch@notmuchmail.org Subject: Re: [PATCH] python: use wrapped notmuch_*_t types instead of raw pointers In-Reply-To: <1323165802-16960-1-git-send-email-schnouki@schnouki.net> References: <1323165802-16960-1-git-send-email-schnouki@schnouki.net> User-Agent: Notmuch/0.10+58~g935365d (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 06 Dec 2011 13:35:01 +0100 Message-ID: <878vmp7ua2.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Tue, 06 Dec 2011 12:35:28 -0000 --=-=-= On Tue, 6 Dec 2011 11:03:22 +0100, Thomas Jost wrote: > Now that types are checked correctly, we also need to make sure that all the > arguments actually are instances of these types. Otherwise the function calls > will fail and raise an exception similar to this one: > ctypes.ArgumentError: argument 3: : expected > LP_LP_NotmuchMessageS instance instead of pointer to c_void_p Thanks, Pushed. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk7eC/YACgkQVYX1jMgnoGJLlgCeIyOcWTn7UJ54idJ/iQVUUblW 7g0AoIEAqZ1PCt1S/5Kc3U5LcjhL11Hj =t16k -----END PGP SIGNATURE----- --=-=-=--