]> granicus.if.org Git - python/commitdiff
starmap/starmap_async for whatsnew, and fix multiprocessing Pool markup.
authorR David Murray <rdmurray@bitdance.com>
Sun, 7 Oct 2012 02:26:52 +0000 (22:26 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sun, 7 Oct 2012 02:26:52 +0000 (22:26 -0400)
Doc/library/multiprocessing.rst
Doc/whatsnew/3.3.rst

index 6c29e3f1f7cb8b3b28cd4b5889346f7497ce65de..82c86104183244ae193124750b777eb25b6e5c15 100644 (file)
@@ -29,7 +29,7 @@ Windows.
     Functionality within this package requires that the ``__main__`` module be
     importable by the children. This is covered in :ref:`multiprocessing-programming`
     however it is worth pointing out here. This means that some examples, such
-    as the :class:`multiprocessing.Pool` examples will not work in the
+    as the :class:`multiprocessing.pool.Pool` examples will not work in the
     interactive interpreter. For example::
 
         >>> from multiprocessing import Pool
@@ -1638,7 +1638,7 @@ Process Pools
 One can create a pool of processes which will carry out tasks submitted to it
 with the :class:`Pool` class.
 
-.. class:: multiprocessing.Pool([processes[, initializer[, initargs[, maxtasksperchild]]]])
+.. class:: Pool([processes[, initializer[, initargs[, maxtasksperchild]]]])
 
    A process pool object which controls a pool of worker processes to which jobs
    can be submitted.  It supports asynchronous results with timeouts and
index 2ba37f97d81ac387aabead7aed86e221edb91ff5..0169dc71476a3b0ab267266db030e48e8d8788d7 100644 (file)
@@ -1537,6 +1537,13 @@ program to wait on multiple :class:`~multiprocessing.Process` objects at one
 time using the appropriate OS primitives (for example, :mod:`select` on
 posix systems).
 
+New methods :meth:`multiprocessing.pool.Pool.starmap` and
+:meth:`~multiprocessing.pool.Pool.starmap_async` provide
+:func:`itertools.starmap` equivalents to the existing
+:meth:`multiprocessing.pool.Pool.map` and
+:meth:`~multiprocessing.pool.Pool.map_async` functions.  (Contributed by Hynek
+Schlawack in :issue:`12708`.)
+
 
 nntplib
 -------