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 804B46DE0A6F for ; Tue, 12 Jan 2016 06:21:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.82 X-Spam-Level: X-Spam-Status: No, score=-0.82 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 EA2auQYlzV2O for ; Tue, 12 Jan 2016 06:21:29 -0800 (PST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by arlo.cworth.org (Postfix) with ESMTPS id 6BEF66DE021E for ; Tue, 12 Jan 2016 06:21:29 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 4770C20BC7 for ; Tue, 12 Jan 2016 09:21:28 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 12 Jan 2016 09:21:28 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.net; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=BYtjC eWFCQoT6A88S/4RKRQ2hHI=; b=RPapV00n3gw4HHqRIQdka/R/6kSIcK7HVdAVB AjQuf4S+amzGnYZzWjCQFZfZ+tEAaxP2lbgMLdB+Gjqtw5osfuespb0QXYfonbtO BPPNVPs9ODdodn0+Inv+vW2eywNUZL8rgBZhymi+ljf8UKbQMSMJmdKRdMwQLLRc nzzQUs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=BYtjCeWFCQoT6A88S/4RKRQ2hHI=; b=D+aJ/ PqrWcBLk0qMy2eT95hOfu87M6dcNuhUtMVJWU/dg0S50DFbkbuoeUblJUDVi+yXb TzxoOi/2sNIyT5szlpT6K5Dwg81t6sR1UMhByvfJ1EvdB/bp81B6kht3RV8nG5MU rf+IeHaM2sY7gOILcUI19Il1ydeXi1KFJFiyMQ= X-Sasl-enc: hJfzGZ7VveZEEfU3+xfXGDVBy4j5WTv8DLDxPX3VpnB3 1452608487 Received: from Konrad-Hinsens-MacBook-Pro-2.local (soleil-ext.synchrotron-soleil.fr [195.221.0.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 9F3C6C016F6; Tue, 12 Jan 2016 09:21:27 -0500 (EST) From: Konrad Hinsen To: notmuch@notmuchmail.org Subject: Re: Crash with Python bindings In-Reply-To: <87bn8r54dz.fsf@zancas.localnet> References: <5694CA65.8010400@fastmail.net> <87bn8r54dz.fsf@zancas.localnet> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-apple-darwin13.4.0) Date: Tue, 12 Jan 2016 15:21:27 +0100 Message-ID: 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 14:21:31 -0000 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? Cheers, Konrad.