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

Method map

Lib/multiprocessing/pool.py:362–367  ·  view source on GitHub ↗

Apply `func` to each element in `iterable`, collecting the results in a list that is returned.

(self, func, iterable, chunksize=None)

Source from the content-addressed store, hash-verified

360 return self.apply_async(func, args, kwds).get()
361
362 def map(self, func, iterable, chunksize=None):
363 '''
364 Apply `func` to each element in `iterable`, collecting the results
365 in a list that is returned.
366 '''
367 return self._map_async(func, iterable, mapstar, chunksize).get()
368
369 def starmap(self, func, iterable, chunksize=None):
370 '''

Callers 2

test_empty_iterableMethod · 0.95
pool_in_processFunction · 0.95

Calls 2

_map_asyncMethod · 0.95
getMethod · 0.45

Tested by 2

test_empty_iterableMethod · 0.76
pool_in_processFunction · 0.76