mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 20:38:08 +01:00
096c600b96
Remove the __len__ functions, as they exhaust the iterator, breaking
'list(x)'.
This is a follow-up to 8866a89e
.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
14 lines
340 B
ReStructuredText
14 lines
340 B
ReStructuredText
:class:`Threads` -- Threads iterator
|
|
====================================
|
|
|
|
.. currentmodule:: notmuch
|
|
|
|
.. autoclass:: Threads
|
|
|
|
.. 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__
|