summaryrefslogtreecommitdiffstats
path: root/Doc/library/multiprocessing.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-02-19 18:21:10 (GMT)
committerGitHub <noreply@github.com>2024-02-19 18:21:10 (GMT)
commitb434439bfbacba909a0368f4e0357dce480c517d (patch)
treec83a1f4b3be01fc59906e6812c57a2c7f8339d7e /Doc/library/multiprocessing.rst
parent773d53d3c130d2c2ae1dcbaff08adea81910b343 (diff)
downloadcpython-b434439bfbacba909a0368f4e0357dce480c517d.zip
cpython-b434439bfbacba909a0368f4e0357dce480c517d.tar.gz
cpython-b434439bfbacba909a0368f4e0357dce480c517d.tar.bz2
[3.12] gh-115664: Fix versionadded and versionchanged directives in multiprocessing.rst (GH-115665) (GH-115677)
(cherry picked from commit 8f602981ba95273f036968cfc5ac28fdcd1808fa) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Doc/library/multiprocessing.rst')
-rw-r--r--Doc/library/multiprocessing.rst29
1 files changed, 14 insertions, 15 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index 8a33e55..eecc724 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -150,18 +150,18 @@ to start a process. These *start methods* are
over Unix pipes such as Linux.
-.. versionchanged:: 3.8
-
- On macOS, the *spawn* start method is now the default. The *fork* start
- method should be considered unsafe as it can lead to crashes of the
- subprocess as macOS system libraries may start threads. See :issue:`33725`.
-
.. versionchanged:: 3.4
*spawn* added on all POSIX platforms, and *forkserver* added for
some POSIX platforms.
Child processes no longer inherit all of the parents inheritable
handles on Windows.
+.. versionchanged:: 3.8
+
+ On macOS, the *spawn* start method is now the default. The *fork* start
+ method should be considered unsafe as it can lead to crashes of the
+ subprocess as macOS system libraries may start threads. See :issue:`33725`.
+
On POSIX using the *spawn* or *forkserver* start methods will also
start a *resource tracker* process which tracks the unlinked named
system resources (such as named semaphores or
@@ -519,7 +519,7 @@ The :mod:`multiprocessing` package mostly replicates the API of the
to the process.
.. versionchanged:: 3.3
- Added the *daemon* argument.
+ Added the *daemon* parameter.
.. method:: run()
@@ -1238,8 +1238,7 @@ Connection objects are usually created using
Connection objects themselves can now be transferred between processes
using :meth:`Connection.send` and :meth:`Connection.recv`.
- .. versionadded:: 3.3
- Connection objects now support the context management protocol -- see
+ Connection objects also now support the context management protocol -- see
:ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the
connection object, and :meth:`~contextmanager.__exit__` calls :meth:`close`.
@@ -2243,11 +2242,11 @@ with the :class:`Pool` class.
as CPython does not assure that the finalizer of the pool will be called
(see :meth:`object.__del__` for more information).
- .. versionadded:: 3.2
- *maxtasksperchild*
+ .. versionchanged:: 3.2
+ Added the *maxtasksperchild* parameter.
- .. versionadded:: 3.4
- *context*
+ .. versionchanged:: 3.4
+ Added the *context* parameter.
.. note::
@@ -2369,7 +2368,7 @@ with the :class:`Pool` class.
Wait for the worker processes to exit. One must call :meth:`close` or
:meth:`terminate` before using :meth:`join`.
- .. versionadded:: 3.3
+ .. versionchanged:: 3.3
Pool objects now support the context management protocol -- see
:ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the
pool object, and :meth:`~contextmanager.__exit__` calls :meth:`terminate`.
@@ -2538,7 +2537,7 @@ multiple connections at the same time.
The address from which the last accepted connection came. If this is
unavailable then it is ``None``.
- .. versionadded:: 3.3
+ .. versionchanged:: 3.3
Listener objects now support the context management protocol -- see
:ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the
listener object, and :meth:`~contextmanager.__exit__` calls :meth:`close`.