Home
last modified time | relevance | path

Searched refs:starmap (Results 1 – 19 of 19) sorted by relevance

/external/python/setuptools/setuptools/command/
Dinstall_lib.py3 from itertools import product, starmap
29 return set(starmap(self._exclude_pkg_path, excl_specs))
/external/python/cpython2/Lib/test/
Dtest_itertools.py787 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 …]
/external/python/cpython3/Lib/test/
Dtest_itertools.py1164 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 …]
D_test_multiprocessing.py2257 psmap = self.pool.starmap
2260 list(itertools.starmap(mul, tuples)))
2263 list(itertools.starmap(mul, tuples)))
2268 list(itertools.starmap(mul, tuples)))
/external/python/cpython2/Doc/library/
Ditertools.rst59 :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 distinction
619 def starmap(function, iterable):
620 # starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000
625 Previously, :func:`starmap` required the function arguments to be tuples.
743 return starmap(func, repeat(args))
744 return starmap(func, repeat(args, times))
/external/python/cpython3/Doc/library/
Ditertools.rst58 :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 distinction
582 def starmap(function, iterable):
583 # starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000
752 return starmap(func, repeat(args))
753 return starmap(func, repeat(args, times))
Dmultiprocessing.rst2191 .. method:: starmap(func, iterable[, chunksize])
2203 A combination of :meth:`starmap` and :meth:`map_async` that iterates over
Dfunctions.rst859 already arranged into argument tuples, see :func:`itertools.starmap`\.
/external/python/cpython3/Lib/multiprocessing/
Dpool.py47 return list(itertools.starmap(args[0], args[1]))
270 def starmap(self, func, iterable, chunksize=None): member in Pool
/external/python/cpython2/Lib/
Dcollections.py25 from itertools import repeat as _repeat, chain as _chain, starmap as _starmap
/external/python/setuptools/setuptools/
Ddist.py171 list(itertools.starmap(_check_extra, value.items()))
Dpackage_index.py408 list(itertools.starmap(self.scan_egg_link, egg_links))
/external/fonttools/Lib/fontTools/ttLib/tables/
DE_B_D_T_.py339 rowData = strjoin(itertools.starmap(binaryConv.get, mapParams))
/external/python/cpython3/Doc/howto/
Dfunctional.rst827 :func:`itertools.starmap(func, iter) <itertools.starmap>` assumes that the
831 itertools.starmap(os.path.join,
/external/python/cpython3/Lib/collections/
D__init__.py26 from itertools import repeat as _repeat, chain as _chain, starmap as _starmap
/external/python/cpython2/Doc/howto/
Dfunctional.rst967 ``itertools.starmap(func, iter)`` assumes that the iterable will return a stream
970 itertools.starmap(os.path.join,
/external/python/cpython3/Doc/whatsnew/
D3.3.rst1549 New methods :meth:`multiprocessing.pool.Pool.starmap` and
1551 :func:`itertools.starmap` equivalents to the existing
/external/python/cpython2/Misc/NEWS.d/
D2.6a1.rst4045 itertools.starmap() now accepts any iterable input. Previously, it required
/external/python/cpython3/Misc/
DHISTORY8907 - Issue #12708: Add starmap() and starmap_async() methods (similar to
8908 itertools.starmap()) to multiprocessing.Pool. Patch by Hynek Schlawack.