Trees | Indices | Help |
|
---|
|
Empty iterator. Useful if you have some object that returns an iterator in most cases but in some cases does not. In the "not" case you can return an empty iterator and the calling code can still use a "for i in iterator" form as it will be a no-op.
|
|||
|
|||
|
|||
|
|||
|
|
Needed to allow "if empty_iterator" to evaluate to False. Halts the iteration. Can also be used to check to see if the iterator exists or not. |
We never have anything to iterate over. So simply stop iterating. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:47 2015 | http://epydoc.sourceforge.net |