]> git.notmuchmail.org Git - notmuch/commit
python: remove Tags().__len__() implementation
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 9 Aug 2011 15:48:27 +0000 (17:48 +0200)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 9 Aug 2011 15:48:27 +0000 (17:48 +0200)
commitdc6b2b438236ed89c624e9c0bb035cc8321149cc
tree52b5dd301e36ba69fc44407d24d2d6574cab923f
parent94c5edd064f856a888ce29f7ac1523006b4b8fd6
python: remove Tags().__len__() implementation

len() exhausts the tag iterator and e.g. list() or "".join(tags)
implicitly call len() if existing and then failing. So, we remove
Tags.__len__().

If you need to know the number of tags a message has, do use
len(list(tags)). It would be nicer to be able to support len() directly...

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
bindings/python/notmuch/tag.py