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 336AF431FB6 for ; Tue, 19 Apr 2011 13:35:13 -0700 (PDT) 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 0qQIOykRdMY9 for ; Tue, 19 Apr 2011 13:35:11 -0700 (PDT) Received: from mail.sflc.info (mail.sflc.info [216.27.154.199]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 38E1B431FB5 for ; Tue, 19 Apr 2011 13:35:11 -0700 (PDT) Received: from [10.2.67.184] (unknown [10.2.67.184]) by mail.sflc.info (Postfix) with ESMTPSA id 772DEB4C006; Tue, 19 Apr 2011 20:34:54 +0000 (UTC) Message-ID: <4DADF1F8.4030809@copiesofcopies.org> Date: Tue, 19 Apr 2011 16:35:04 -0400 From: Aaron Williamson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Sebastian Spaeth Subject: Re: python documentation References: <87hbb4zyp6.fsf@servo.finestructure.net> <87pqpsh0sg.fsf@SSpaeth.de> <87mxjn68q7.fsf@eve.chaoflow.net> <877har7jcp.fsf@SSpaeth.de> <87hb9v61qy.fsf@eve.chaoflow.net> <87oc4257t9.fsf@SSpaeth.de> In-Reply-To: <87oc4257t9.fsf@SSpaeth.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Notmuch Mail 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, 19 Apr 2011 20:35:13 -0000 On 04/19/2011 04:01 PM, Sebastian Spaeth wrote: > On Mon, 18 Apr 2011 17:03:01 +0200, Florian Friesdorf wrote: >> Is it sane to have python bindings that need updates or would a plain >> wrapper of the notmuch script (that maybe needs less updates) be better? >> I don't want to imply that this can be answered with yes/no, but more to >> get a comparison of the two approaches. > > Invoking notmuch the script and piping the results? I wouldn't call that > python bindings anymore then. Also it is bound to be much more expensive > than directly interfacing libnotmuch.so. > >> Naïvely, I imagine there is a header file and the generation of the >> python bindings happens rather automagic. > > I wish it would be that easy. :-) I've never actually used it, so I may be way off base, but would it be possible to use SWIG (http://www.swig.org/) to automatically generate bindings when the C library is updated, or at least provide a decent starting point? Aaron