diff options
author | 2011-06-15 14:25:33 +0200 | |
---|---|---|
committer | 2011-06-15 14:25:33 +0200 | |
commit | 8866a89e3cff46dbd791a1385ca5c800a5c9091e (patch) | |
tree | e4e0cd3bf6fdafcc8124a6e77640e7ee3903f02b /bindings/python/docs/source/notmuch.rst | |
parent | b7db7ea42056b96578b329db5a184c9c408062c2 (diff) |
python: Remove Messages().__len__
Messages.__len__() exhausted the iterator and list() inherently calls
len(), so we could not invoke list(msgs) without getting errors. Fix
this by implementing __nonzero__ but removing __len__ on Messages.
Use Query.count_messages() or len(list(msgs)) if you need to know the
number.
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'bindings/python/docs/source/notmuch.rst')
0 files changed, 0 insertions, 0 deletions