Module Command :: Class outputfilterbuffer
[hide private]

Class outputfilterbuffer

source code

object --+    
         |    
linebuffer --+
             |
            outputfilterbuffer
Known Subclasses:

a.k.a. blockbuffer, gather input lines and process them en block before producing output.

Nested Classes [hide private]
  _nullblock
Instance Methods [hide private]
 
__init__(self, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__iter__(self) source code

Inherited from linebuffer: write

Inherited from linebuffer (private): _buffer

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, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • filter - an instance of a class with 2 methods:
    • process(self,data) stores the data
    • results(self) returns results. To be usefull in a pipeline this returned result should be an iterable.
Overrides: object.__init__
(inherited documentation)

__iter__(self)

source code 
Overrides: linebuffer.__iter__