From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 1D2E86DE0B7C for ; Tue, 12 Jan 2016 07:26:40 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.309 X-Spam-Level: X-Spam-Status: No, score=-0.309 tagged_above=-999 required=5 tests=[AWL=0.242, RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1OuY-gGabrcZ for ; Tue, 12 Jan 2016 07:26:38 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 48C176DE0B4F for ; Tue, 12 Jan 2016 07:26:38 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84) (envelope-from ) id 1aJ0q3-0000bi-Aq; Tue, 12 Jan 2016 10:26:27 -0500 Received: (nullmailer pid 24068 invoked by uid 1000); Tue, 12 Jan 2016 15:26:35 -0000 From: David Bremner To: Konrad Hinsen , notmuch@notmuchmail.org Subject: Re: Crash with Python bindings In-Reply-To: References: <5694CA65.8010400@fastmail.net> <87bn8r54dz.fsf@zancas.localnet> User-Agent: Notmuch/0.21+26~g9404723 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Tue, 12 Jan 2016 11:26:35 -0400 Message-ID: <8737u26cpg.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 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, 12 Jan 2016 15:26:40 -0000 Konrad Hinsen writes: > David Bremner writes: > >>> from notmuch import Query, Database >>> >>> def foo(bar): >>> pass >>> >>> db = Database() >>> q = Query(db, "*") >>> db.close() >> >> Do you really call the constructor without a path? Or are you censoring >> the script for some reason? > > No path means path=None, which stands for the path from > ~/.notmuch-config. That's exactly what I want. Is there some reason not > to rely on this mechanism? Oh sorry, I'm (obviously) not that familiar with the python bindings. d