notmuch/bindings
Sebastian Spaeth 01cc4a3115 bindings/python: implement Threads().__nonzero__
__nonzero__ checks if Threads() contains at least one more valid thread

 The existence of this function makes 'if Threads(): foo' work, as that
 previously implicitely called len() exhausting the iterator. This
 function makes `bool(Threads())` work repeatedly.

For further info, see http://docs.python.org/reference/datamodel.html.
Credits for the hint go to Brian May.

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