diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-03 15:36:47 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-03 15:36:47 -0800 |
| commit | 55a7046471e19843a68d4a1a15252fd197bb6913 (patch) | |
| tree | ef064723b3fafe43d8c14a4bf0bcc1ee5dd27a6a | |
| parent | 87f2d261ee1c63ed39517355833d087c5a78b4bf (diff) | |
| download | cpython-git-55a7046471e19843a68d4a1a15252fd197bb6913.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
(cherry picked from commit eb48a451e3844185b9a8751c9badffbddc89689d)
Co-authored-by: An Long <aisk@users.noreply.github.com>
| -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 96e0dc831b..9bed380117 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -2142,7 +2142,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 |
