X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fdocs%2Fsource%2Ffilesystem.rst;h=13fe11946c464eb63e1e06f0ac82b38d0551f0fa;hb=44862764d27d29fbfb9ded12b1112abe104fb7e1;hp=685dc4d342cc31ac2b60ebeb8230542ec1167ed1;hpb=d50171d1cc575a41bf620c55853ade65d0edfad8;p=notmuch diff --git a/bindings/python/docs/source/filesystem.rst b/bindings/python/docs/source/filesystem.rst index 685dc4d3..13fe1194 100644 --- a/bindings/python/docs/source/filesystem.rst +++ b/bindings/python/docs/source/filesystem.rst @@ -8,12 +8,14 @@ Files and directories .. autoclass:: Filenames - .. automethod:: Filenames.__len__ - - .. automethod:: Filenames.as_generator - -:class:`Directoy` -- A directory entry in the database ------------------------------------------------------- + .. 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:`Directory` -- A directory entry in the database +------------------------------------------------------- .. autoclass:: Directory