Lines Matching refs:izip
563 ans = [(x,y) for x, y in izip('abc',count())]
565 self.assertEqual(list(izip('abc', range(6))), zip('abc', range(6)))
566 self.assertEqual(list(izip('abcdef', range(3))), zip('abcdef', range(3)))
567 self.assertEqual(take(3,izip('abcdef', count())), zip('abcdef', range(3)))
568 self.assertEqual(list(izip('abcdef')), zip('abcdef'))
569 self.assertEqual(list(izip()), zip())
570 self.assertRaises(TypeError, izip, 3)
571 self.assertRaises(TypeError, izip, range(3), 3)
572 self.assertEqual([tuple(list(pair)) for pair in izip('abc', 'def')],
574 self.assertEqual([pair for pair in izip('abc', 'def')],
579 ids = map(id, izip('abc', 'def'))
581 ids = map(id, list(izip('abc', 'def')))
789 self.assertEqual(take(3, starmap(operator.pow, izip(count(), count(1)))),
988 self.assertRaises(StopIteration, izip().next)
990 for f in (chain, cycle, izip, groupby):
1062 self.assertEqual(list(izip('ABCD', 'xy')), [('A', 'x'), ('B', 'y')])
1103 for i, element in izip(xrange(start), iterable):
1113 for i, element in izip(xrange(i + 1, stop), iterable):
1195 self.makecycle(izip([a]*2, [a]*3), a)
1372 self.assertEqual(list(izip(g(s))), zip(g(s)))
1373 self.assertEqual(list(izip(g(s), g(s))), zip(g(s), g(s)))
1374 self.assertRaises(TypeError, izip, X(s))
1375 self.assertRaises(TypeError, list, izip(N(s)))
1376 self.assertRaises(ZeroDivisionError, list, izip(E(s)))
1471 z = izip(*[gen]*len(tuple1))
1551 for cls in (repeat, izip, ifilter, ifilterfalse, chain, imap,