Package wsgitools :: Module filters :: Class CloseableIterator
[hide private]
[frames] | no frames]

Class CloseableIterator

source code

Concatenating iterator with close attribute.

Instance Methods [hide private]
 
__init__(self, close_function, *iterators)
If close_function is not None, it will be the close attribute of the created iterator object.
source code
gen()
__iter__(self)
iterator interface
source code
 
next(self)
iterator interface
source code
Method Details [hide private]

__init__(self, close_function, *iterators)
(Constructor)

source code 

If close_function is not None, it will be the close attribute of the created iterator object. Further parameters specify iterators that are to be concatenated.

Parameters:
  • close_function (a function or None)