Re: Python notmuch2 bridge, something changed in the Database constructor

Subject: Re: Python notmuch2 bridge, something changed in the Database constructor

Date: Fri, 24 Dec 2021 14:42:58 +0100

To: notmuch@notmuchmail.org

Cc:

From: Lele Gaifax


David Bremner <david@tethera.net> writes:

> Yes there was a change to the Database constructor in the notmuch2
> python module in 0.34.2. It now uses the library to search for
> configuration files and databases, so the semantics are a bit
> different. But it is also possible that that default for the config
> argument should be changed.
>
> Can you try
>
>     with Database(config=Database.CONFIG.SEARCH) as db:

Yes, that works too. Should the Database docstring be rectified accordingly?

Thank you,
ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@metapensiero.it  |                 -- Fortunato Depero, 1929.

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: