Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
izip_longest(iter1 [,iter2 [...]], [fillvalue=None]) --> izip_longest object

Return an izip_longest object whose .next() method returns a tuple where
the i-th element comes from the i-th iterable argument.  The .next()
method continues until the longest iterable in the argument sequence
is exhausted and then it raises StopIteration.  When the shorter iterables
are exhausted, the fillvalue is substituted in their place.  The fillvalue
defaults to None or can be specified by a keyword argument.

src/d/y/dynts-HEAD/dynts/utils/test.py   dynts(Download)
from .importlib import import_modules
from .populate import populate, datepopulate, randomts
from .py2py3 import zip_longest
 
skipUnless = unittest.skipUnless
        if self.isiterable(a):
            self.assertTrue(self.isiterable(b))
            for x,y in zip_longest(a,b):
                self.assertAlmostEqual(x, y, places=places, msg=msg)
            return True