X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fdocs%2Fsource%2Findex.rst;h=d58ba97efb391fff9e7cc8b367bcce0c6720b439;hp=bf0cfd280eb1f27b96ece1ffa4027b5f440522b1;hb=8866a89e3cff46dbd791a1385ca5c800a5c9091e;hpb=b7db7ea42056b96578b329db5a184c9c408062c2 diff --git a/bindings/python/docs/source/index.rst b/bindings/python/docs/source/index.rst index bf0cfd28..d58ba97e 100644 --- a/bindings/python/docs/source/index.rst +++ b/bindings/python/docs/source/index.rst @@ -127,7 +127,12 @@ More information on specific topics can be found on the following pages: .. automethod:: collect_tags - .. automethod:: __len__ + .. method:: __len__() + + .. note:: :meth:`__len__` was removed in version 0.6 as it exhausted + the iterator and broke list(Messages()). Use the + :meth:`Query.count_messages` function or use + `len(list(msgs))`. :class:`Message` -- A single message ----------------------------------------