Lines Matching refs:starmap
787 self.assertEqual(list(starmap(operator.pow, zip(range(3), range(1,7)))),
789 self.assertEqual(take(3, starmap(operator.pow, izip(count(), count(1)))),
791 self.assertEqual(list(starmap(operator.pow, [])), [])
792 self.assertEqual(list(starmap(operator.pow, [iter([4,5])])), [4**5])
793 self.assertRaises(TypeError, list, starmap(operator.pow, [None]))
794 self.assertRaises(TypeError, starmap)
795 self.assertRaises(TypeError, starmap, operator.pow, [(4,5)], 'extra')
796 self.assertRaises(TypeError, starmap(10, [(4,5)]).next)
797 self.assertRaises(ValueError, starmap(errfunc, [(4,5)]).next)
798 self.assertRaises(TypeError, starmap(onearg, [(4,5)]).next)
1006 for f in (ifilter, ifilterfalse, imap, takewhile, dropwhile, starmap):
1085 self.assertEqual(list(starmap(pow, [(2,5), (3,2), (10,3)])),
1225 self.makecycle(starmap(lambda *t: t, [(a,a)]*2), a)
1408 self.assertEqual(list(starmap(operator.pow, g(ss))), map(operator.pow, g(s), g(s)))
1409 self.assertRaises(TypeError, starmap, operator.pow, X(ss))
1410 self.assertRaises(TypeError, list, starmap(operator.pow, N(ss)))
1411 self.assertRaises(ZeroDivisionError, list, starmap(operator.pow, E(ss)))
1552 starmap, islice, takewhile, dropwhile, cycle, compress):