MCPcopy Index your code
hub / github.com/python/cpython / starmap

Method starmap

Lib/multiprocessing/pool.py:369–375  ·  view source on GitHub ↗

Like `map()` method but the elements of the `iterable` are expected to be iterables as well and will be unpacked as arguments. Hence `func` and (a, b) becomes func(a, b).

(self, func, iterable, chunksize=None)

Source from the content-addressed store, hash-verified

367 return self._map_async(func, iterable, mapstar, chunksize).get()
368
369 def starmap(self, func, iterable, chunksize=None):
370 '''
371 Like `map()` method but the elements of the `iterable` are expected to
372 be iterables as well and will be unpacked as arguments. Hence
373 `func` and (a, b) becomes func(a, b).
374 '''
375 return self._map_async(func, iterable, starmapstar, chunksize).get()
376
377 def starmap_async(self, func, iterable, chunksize=None, callback=None,
378 error_callback=None):

Callers 3

test_starmapMethod · 0.80
test_starmap_asyncMethod · 0.80
starmapstarFunction · 0.80

Calls 2

_map_asyncMethod · 0.95
getMethod · 0.45

Tested by 2

test_starmapMethod · 0.64
test_starmap_asyncMethod · 0.64