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
 
next(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

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)
Overrides: object.__init__