From: Sebastian Spaeth Date: Wed, 15 Jun 2011 12:25:33 +0000 (+0200) Subject: python: Remove Messages().__len__ X-Git-Tag: debian/0.6_254~39 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;ds=sidebyside;h=8866a89e3cff46dbd791a1385ca5c800a5c9091e;hp=8866a89e3cff46dbd791a1385ca5c800a5c9091e;p=notmuch 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 ---