unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Lele Gaifax <lele@metapensiero.it>
To: notmuch@notmuchmail.org
Subject: Re: Python notmuch2 bridge, something changed in the Database constructor
Date: Fri, 24 Dec 2021 14:42:58 +0100	[thread overview]
Message-ID: <87bl16jezh.fsf@metapensiero.it> (raw)
In-Reply-To: 87lf0anoiv.fsf@tethera.net

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.
\r

  reply	other threads:[~2021-12-24 13:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-24  7:09 Python notmuch2 bridge, something changed in the Database constructor Lele Gaifax
2021-12-24 13:03 ` David Bremner
2021-12-24 13:42   ` Lele Gaifax [this message]
2022-01-01 15:20   ` Floris Bruynooghe
2022-01-08 16:19 ` [PATCH] bindings/python-cffi: search for config by default David Bremner
2022-01-08 18:47   ` Floris Bruynooghe
2022-01-08 21:21     ` [PATCH v2] " David Bremner
2022-01-09 20:00       ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bl16jezh.fsf@metapensiero.it \
    --to=lele@metapensiero.it \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).