]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/docs/source/threads.rst
python: Remove {Filenames,Threads}.__len__
[notmuch] / bindings / python / docs / source / threads.rst
index e5a8c8a95d1861ba755c34e7cd7c643a13836aaa..4324ac82a389611d8a633c65f015dabb7c4d4aa0 100644 (file)
@@ -5,6 +5,10 @@
 
 .. autoclass:: Threads
 
-   .. automethod:: __len__
+   .. method:: __len__
+   .. warning::
+      :meth:`__len__` was removed in version 0.22 as it exhausted the
+      iterator and broke list(Threads()). Use `len(list(msgs))`
+      instead.
 
-   .. automethod:: __str__
+.. automethod:: __str__