]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-27873: Update docstring for multiprocessing.Pool.map (GH-17436)
authorAn Long <aisk@users.noreply.github.com>
Tue, 3 Dec 2019 23:30:53 +0000 (07:30 +0800)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 3 Dec 2019 23:30:53 +0000 (15:30 -0800)
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

Doc/library/multiprocessing.rst

index d8182feab963a1b6a929f18bcad400e04e911119..3c7b5cc1262097d410336e982ac747f1d89e71de 100644 (file)
@@ -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