diff options
| author | An Long <aisk@users.noreply.github.com> | 2019-12-04 07:30:53 +0800 |
|---|---|---|
| committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-03 15:30:53 -0800 |
| commit | eb48a451e3844185b9a8751c9badffbddc89689d (patch) | |
| tree | 2501bc12316ca5272bcaea9437931d6d4e2fde19 /Doc/library | |
| parent | 894331838b256412c95d54051ec46a1cb96f52e7 (diff) | |
| download | cpython-git-eb48a451e3844185b9a8751c9badffbddc89689d.tar.gz | |
bpo-27873: Update docstring for multiprocessing.Pool.map (GH-17436)
Update docstring for `multiprocessing.Pool.map` to mention `pool.starmap()`.
Prev PR: https://github.com/python/cpython/pull/17367 @aeros
https://bugs.python.org/issue27873
Diffstat (limited to 'Doc/library')
| -rw-r--r-- | Doc/library/multiprocessing.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index d8182feab9..3c7b5cc126 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -2169,7 +2169,8 @@ with the :class:`Pool` class. .. method:: map(func, iterable[, chunksize]) A parallel equivalent of the :func:`map` built-in function (it supports only - one *iterable* argument though). It blocks until the result is ready. + one *iterable* argument though, for multiple iterables see :meth:`starmap`). + It blocks until the result is ready. This method chops the iterable into a number of chunks which it submits to the process pool as separate tasks. The (approximate) size of these |
