[Python-checkins] cpython (merge 3.3 -> default): Merge: starmap/starmap_async for whatsnew, and fix multiprocessing Pool markup.
r.david.murray
python-checkins at python.org
Sun Oct 7 04:27:45 CEST 2012
http://hg.python.org/cpython/rev/ff8aa3d9fefd
changeset: 79558:ff8aa3d9fefd
parent: 79556:1d2b0ff97a62
parent: 79557:69e7a085fa99
user: R David Murray <rdmurray at bitdance.com>
date: Sat Oct 06 22:27:31 2012 -0400
summary:
Merge: starmap/starmap_async for whatsnew, and fix multiprocessing Pool markup.
files:
Doc/library/multiprocessing.rst | 4 ++--
Doc/whatsnew/3.3.rst | 7 +++++++
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -29,7 +29,7 @@
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 @@
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
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -1537,6 +1537,13 @@
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
-------
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list