Package duplicity :: Module lazy :: Class IterMultiplex2
[hide private]
[frames] | no frames]

Class IterMultiplex2

source code

Multiplex an iterator into 2 parts

This is a special optimized case of the Iter.multiplex function, used when there is no closing_func or final_func, and we only want to split it into 2. By profiling, this is a time sensitive class.

Instance Methods [hide private]
 
__init__(self, iter) source code
 
yielda(self)
Return first iterator
source code
 
yieldb(self)
Return second iterator
source code