Searched refs:starmap (Results 1 – 19 of 19) sorted by relevance
3 from itertools import product, starmap29 return set(starmap(self._exclude_pkg_path, excl_specs))
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)[all …]
1164 self.assertEqual(list(starmap(operator.pow, zip(range(3), range(1,7)))),1166 self.assertEqual(take(3, starmap(operator.pow, zip(count(), count(1)))),1168 self.assertEqual(list(starmap(operator.pow, [])), [])1169 self.assertEqual(list(starmap(operator.pow, [iter([4,5])])), [4**5])1170 self.assertRaises(TypeError, list, starmap(operator.pow, [None]))1171 self.assertRaises(TypeError, starmap)1172 self.assertRaises(TypeError, starmap, operator.pow, [(4,5)], 'extra')1173 self.assertRaises(TypeError, next, starmap(10, [(4,5)]))1174 self.assertRaises(ValueError, next, starmap(errfunc, [(4,5)]))1175 self.assertRaises(TypeError, next, starmap(onearg, [(4,5)]))[all …]
2257 psmap = self.pool.starmap2260 list(itertools.starmap(mul, tuples)))2263 list(itertools.starmap(mul, tuples)))2268 list(itertools.starmap(mul, tuples)))
59 :func:`starmap` func, seq func(\*seq[0]), func(\*seq[1]), ... …611 .. function:: starmap(function, iterable)616 difference between :func:`imap` and :func:`starmap` parallels the distinction619 def starmap(function, iterable):620 # starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000625 Previously, :func:`starmap` required the function arguments to be tuples.743 return starmap(func, repeat(args))744 return starmap(func, repeat(args, times))
58 :func:`starmap` func, seq func(\*seq[0]), func(\*seq[1]), ...…574 .. function:: starmap(function, iterable)579 difference between :func:`map` and :func:`starmap` parallels the distinction582 def starmap(function, iterable):583 # starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000752 return starmap(func, repeat(args))753 return starmap(func, repeat(args, times))
2191 .. method:: starmap(func, iterable[, chunksize])2203 A combination of :meth:`starmap` and :meth:`map_async` that iterates over
859 already arranged into argument tuples, see :func:`itertools.starmap`\.
47 return list(itertools.starmap(args[0], args[1]))270 def starmap(self, func, iterable, chunksize=None): member in Pool
25 from itertools import repeat as _repeat, chain as _chain, starmap as _starmap
171 list(itertools.starmap(_check_extra, value.items()))
408 list(itertools.starmap(self.scan_egg_link, egg_links))
339 rowData = strjoin(itertools.starmap(binaryConv.get, mapParams))
827 :func:`itertools.starmap(func, iter) <itertools.starmap>` assumes that the831 itertools.starmap(os.path.join,
26 from itertools import repeat as _repeat, chain as _chain, starmap as _starmap
967 ``itertools.starmap(func, iter)`` assumes that the iterable will return a stream970 itertools.starmap(os.path.join,
1549 New methods :meth:`multiprocessing.pool.Pool.starmap` and1551 :func:`itertools.starmap` equivalents to the existing
4045 itertools.starmap() now accepts any iterable input. Previously, it required
8907 - Issue #12708: Add starmap() and starmap_async() methods (similar to8908 itertools.starmap()) to multiprocessing.Pool. Patch by Hynek Schlawack.