notmuch/bindings
Sebastian Spaeth aeecafa694 bindings/python: Implement Tags().__nonzero__()
Analog to Threads.__nonzero__ this allows us to perform list() on a Threads() object and to repeatedly call "if Tags():" or "bool(Tags())" without implicitly invoking len(), thus exhausting our iterator.

While touching this code, I added a small micro-optimization to the Tag next() function. There is no need to explicitly check _is_valid, as _get implicitly does check for validness and returns None, if there is no more Tag to fetch. This avoids some roundtrips into the library when iterating through Tags.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-06-02 17:28:50 +02:00
..
go update for go-release-2011-02-01: 2011-02-03 09:36:58 +01:00
python bindings/python: Implement Tags().__nonzero__() 2011-06-02 17:28:50 +02:00
ruby ruby: Add generated files to .gitignore 2011-02-03 01:40:38 +02:00