def combine ( self , a , b ) : for l in ( a , b ) : for x in l : yield x
python multiple iterators one loop
A generator that combines two iterables .
def combine(self, a, b):
        """A generator that combines two iterables."""

        for l in (a, b):
            for x in l:
                yield x