Module Command :: Class tee
[hide private]

Class tee

source code

       object --+    
                |    
             pype --+
                    |
   object --+       |
            |       |
   linebuffer --+   |
                |   |
inputfilterbuffer --+
                    |
                   tee

Copy input to output and to any files specified as arguments

Example:

   cat('*.dat') | tee('all.dat') > stdout
Instance Methods [hide private]
 
__init__(self, *args, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from pype: __gt__, __or__, __repr__, __str__

Inherited from inputfilterbuffer: write

Inherited from linebuffer: __iter__

Inherited from linebuffer (private): _buffer

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 

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

Parameters:
  • filter - function taking one argument and returing a single item.
Overrides: object.__init__
(inherited documentation)