Fix a method rename in the docs that was overlooked in
3444c731d27fd42bbbdaae00af6ca48b4525b03b.
---
bindings/python/docs/source/database.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bindings/python/docs/source/database.rst b/bindings/python/docs/source/database.rst
ind
Sorry I overlooked that. Patch coming right up.
Lucas Hoffmann (1):
python: Fix method name in docs
bindings/python/docs/source/database.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.15.1
___
notmuch mailing list
notmuch@notmuchma
---
test/T390-python.sh | 13 +
1 file changed, 13 insertions(+)
diff --git a/test/T390-python.sh b/test/T390-python.sh
index c6f395e4..312d61e8 100755
--- a/test/T390-python.sh
+++ b/test/T390-python.sh
@@ -142,4 +142,17 @@ cat <<'EOF' >EXPECTED
EOF
test_expect_equal_file EXPECTED
It makes the function a little more intuitive to use and does not
diverge much from the original function signature.
Also an example is added to the docstring.
---
bindings/python/notmuch/database.py | 13 ++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/bindings/pyth
The old name has a bit of a feeling of hungarian notation. Also many
generators in the core are named with the suffix "s" to indicate
iterables: dict.items, dict.keys for example.
---
bindings/python/notmuch/database.py | 18 ++
test/T390-python.sh | 12 ++
The C functions notmuch_database_get_config,
notmuch_database_get_config_list and notmuch_database_set_config are
part of the official C bindings. So there should also be some python
bindings for them.
Also they are the only way to access the named queries introduced in
b9bf3f44.
The interface
The tests where adopted from the tests for the corresponding C functions
in test/T590-libconfig.sh.
---
test/T390-python.sh | 68 +
1 file changed, 68 insertions(+)
diff --git a/test/T390-python.sh b/test/T390-python.sh
index a93a7f34..725a00c9
This mimics the behaviour of the underlying C function more closely as
it also does not store all values in memory.
---
bindings/python/notmuch/database.py | 30 --
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/bindings/python/notmuch/database.py b/bi
Comming back after a long time (sorry for the wait).
I now changed the binding for notmuch_database_get_config_list into a
generator. It is called get_configs in the python bindings (the "s"
should indicate the iterable/generator nature like for dict.items or
dict.keys).
Tests and the set_config
---
bindings/python/notmuch/database.py | 7 +++
1 file changed, 7 insertions(+)
diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py
index 9d7737b2..1fd312dd 100644
--- a/bindings/python/notmuch/database.py
+++ b/bindings/python/notmuch/database.py
@@ -709,3
---
bindings/python/docs/source/database.rst | 4 ++
bindings/python/notmuch/database.py | 85
bindings/python/notmuch/globals.py | 5 ++
3 files changed, 94 insertions(+)
diff --git a/bindings/python/docs/source/database.rst b/bindings/python/docs/so
11 matches
Mail list logo