]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/docs/source/filesystem.rst
python: Remove {Filenames,Threads}.__len__
[notmuch] / bindings / python / docs / source / filesystem.rst
index 4eb781077940046a3e57e50d9f0969cb44806dd4..a23ae41a875685214c45a57bfb41720e29f3538f 100644 (file)
@@ -8,7 +8,11 @@ Files and directories
 
 .. autoclass:: Filenames
 
 
 .. autoclass:: Filenames
 
-   .. automethod:: Filenames.__len__
+   .. method:: Filenames.__len__
+   .. warning::
+      :meth:`__len__` was removed in version 0.22 as it exhausted the
+      iterator and broke list(Filenames()). Use `len(list(names))`
+      instead.
 
 :class:`Directoy` -- A directory entry in the database
 ------------------------------------------------------
 
 :class:`Directoy` -- A directory entry in the database
 ------------------------------------------------------