Home
last modified time | relevance | path

Searched refs:starmap (Results 1 – 22 of 22) 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.py1183 self.assertEqual(list(starmap(operator.pow, zip(range(3), range(1,7)))),
1185 self.assertEqual(take(3, starmap(operator.pow, zip(count(), count(1)))),
1187 self.assertEqual(list(starmap(operator.pow, [])), [])
1188 self.assertEqual(list(starmap(operator.pow, [iter([4,5])])), [4**5])
1189 self.assertRaises(TypeError, list, starmap(operator.pow, [None]))
1190 self.assertRaises(TypeError, starmap)
1191 self.assertRaises(TypeError, starmap, operator.pow, [(4,5)], 'extra')
1192 self.assertRaises(TypeError, next, starmap(10, [(4,5)]))
1193 self.assertRaises(ValueError, next, starmap(errfunc, [(4,5)]))
1194 self.assertRaises(TypeError, next, starmap(onearg, [(4,5)]))
[all …]
D_test_multiprocessing.py2361 psmap = self.pool.starmap
2364 list(itertools.starmap(mul, tuples)))
2367 list(itertools.starmap(mul, tuples)))
2372 list(itertools.starmap(mul, tuples)))
/external/crosvm/rutabaga_gfx/src/generated/
Dgenerate132 results = pool.starmap(generate_module, modules, 1)
Dgenerate.py132 results = pool.starmap(generate_module, modules, 1)
/external/python/cpython3/Lib/importlib/
Dmetadata.py20 from itertools import starmap
283 return file_lines and list(starmap(make_file, csv.reader(file_lines)))
/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/fonttools/Lib/fontTools/cu2qu/
Dcli.py174 pool.starmap(func, zip(options.infiles, output_paths))
/external/python/cpython3/Doc/library/
Ditertools.rst58 :func:`starmap` func, seq func(\*seq[0]), func(\*seq[1]), ...…
594 .. function:: starmap(function, iterable)
599 difference between :func:`map` and :func:`starmap` parallels the distinction
602 def starmap(function, iterable):
603 # starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000
782 return starmap(func, repeat(args))
783 return starmap(func, repeat(args, times))
Dfunctions.rst926 already arranged into argument tuples, see :func:`itertools.starmap`\.
/external/python/cpython3/Lib/multiprocessing/
Dpool.py51 return list(itertools.starmap(args[0], args[1]))
366 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_.py338 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__.py35 from itertools import 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.