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 51AFF421198 for ; Mon, 23 Jan 2012 02:24:34 -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 koSOW+5oBo2d for ; Mon, 23 Jan 2012 02:24:33 -0800 (PST) Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66]) by olra.theworths.org (Postfix) with ESMTP id 842EA421192 for ; Mon, 23 Jan 2012 02:24:33 -0800 (PST) Received: by guru.guru-group.fi (Postfix, from userid 501) id C5BD468056; Mon, 23 Jan 2012 12:24:35 +0200 (EET) From: Tomi Ollila To: Justus Winter <4winter@informatik.uni-hamburg.de>, notmuch@notmuchmail.org Subject: Re: [PATCH] python: fix error handling In-Reply-To: <1327237776-18100-1-git-send-email-4winter@informatik.uni-hamburg.de> References: <87obtvc42c.fsf@zancas.localnet> <1327237776-18100-1-git-send-email-4winter@informatik.uni-hamburg.de> User-Agent: Notmuch/0.11+71~gefa5d6c (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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, 23 Jan 2012 10:24:34 -0000 On Sun, 22 Jan 2012 14:09:35 +0100, Justus Winter <4winter@informatik.uni-hamburg.de> wrote: > Before 3434d1940 the return values of libnotmuch functions were > declared as c_void_p and the code checking for errors compared the > returned value to None, which is the ctypes equivalent of a NULL > pointer. > > But said commit wrapped all the data types in python classes and the > semantic changed in a subtle way. If a function returns NULL, the > wrapped python value is falsish, but no longer equal to None. > > Backported from master to 0.11. > --- LGTM. Tomi