[docs] [issue31914] Document Pool.(star)map return type

Дилян Палаузов report at bugs.python.org
Tue Oct 31 16:45:13 EDT 2017

New submission from Дилян Палаузов <dilyan.palauzov at aegee.org>:

https://docs.python.org/3/library/multiprocessing.html#multiprocessing.pool.Pool.starmap says:

starmap(func, iterable[, chunksize])
Like map() except that the elements of the iterable are expected to be iterables that are unpacked as arguments.

Hence an iterable of [(1,2), (3, 4)] results in [func(1,2), func(3,4)].

If it was like map() then it would have returned an iterator.  Please clarify, that Pool.map and Pool.starmap return list.

assignee: docs at python
components: Documentation
messages: 305337
nosy: dilyan.palauzov, docs at python
priority: normal
severity: normal
status: open
title: Document Pool.(star)map return type
type: enhancement
versions: Python 3.6

Python tracker <report at bugs.python.org>

More information about the docs mailing list