Re: Crash with Python bindings

Subject:Re: Crash with Python bindings

Date:Tue, 12 Jan 2016 11:26:35 -0400

To:Konrad Hinsen ,notmuch@notmuchmail.org

Cc:

From:David Bremner


Konrad Hinsen <konrad.hinsen@fastmail.net> writes:

> David Bremner <david@tethera.net> 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

Thread: