From: David Bremner Date: Tue, 12 Jan 2016 15:26:35 +0000 (+2000) Subject: Re: Crash with Python bindings X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6fdb05c42722839a883f7837325e740b75c20a5c;p=notmuch-archives.git Re: Crash with Python bindings --- diff --git a/fc/c7aa4d56cc460b8a9a652f449a0224152326fd b/fc/c7aa4d56cc460b8a9a652f449a0224152326fd new file mode 100644 index 000000000..4af589e10 --- /dev/null +++ b/fc/c7aa4d56cc460b8a9a652f449a0224152326fd @@ -0,0 +1,73 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +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