8000 gh-115664: Fix versionadded and versionchanged directives in multipro… · LukasWoodtli/cpython@ae86d57 · GitHub
[go: up one dir, main page]

Skip to content

Commit ae86d57

Browse files
serhiy-storchakaLukasWoodtli
authored andcommitted
pythongh-115664: Fix versionadded and versionchanged directives in multiprocessing.rst (pythonGH-115665)
1 parent b8c72d1 commit ae86d57

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

Doc/library/multiprocessing.rst

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,18 @@ to start a process. These *start methods* are
150150
over Unix pipes such as Linux.
151151

152152

153-
.. versionchanged:: 3.8
154-
155-
On macOS, the *spawn* start method is now the default. The *fork* start
156-
method should be considered unsafe as it can lead to crashes of the
157-
subprocess as macOS system libraries may start threads. See :issue:`33725`.
158-
159153
.. versionchanged:: 3.4
160154
*spawn* added on all POSIX platforms, and *forkserver* added for
161155
some POSIX platforms.
162156
Child processes no longer inherit all of the parents inheritable
163157
handles on Windows.
164158

159+
.. versionchanged:: 3.8
160+
161+
On macOS, the *spawn* start method is now the default. The *fork* start
162+
method should be considered unsafe as it can lead to crashes of the
163+
subprocess as macOS system libraries may start threads. See :issue:`33725`.
164+
165165
On POSIX using the *spawn* or *forkserver* start methods will also
166166
start a *resource tracker* process which tracks the unlinked named
167167
system resources (such as named semaphores or
@@ -519,7 +519,7 @@ The :mod:`multiprocessing` package mostly replicates the API of the
519519
to the process.
520520

521521
.. versionchanged:: 3.3
522-
Added the *daemon* argument.
522+
Added the *daemon* parameter.
523523

524524
.. method:: run()
525525

@@ -1245,8 +1245,7 @@ Connection objects are usually created using
12451245
Connection objects themselves can now be transferred between processes
12461246
using :meth:`Connection.send` and :meth:`Connection.recv`.
12471247

1248-
.. versionadded:: 3.3
1249-
Connection objects now support the context management protocol -- see
1248+
Connection objects also now support the context management protocol -- see
12501249
:ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the
12511250
connection object, and :meth:`~contextmanager.__exit__` calls :meth:`close`.
12521251

@@ -2250,11 +2249,11 @@ with the :class:`Pool` class.
22502249
as CPython does not assure that the finalizer of the pool will be called
22512250
(see :meth:`object.__del__` for more information).
22522251

2253-
.. versionadded:: 3.2
2254-
*maxtasksperchild*
2252+
.. versionchanged:: 3.2
2253+
Added the *maxtasksperchild* parameter.
22552254

2256-
.. versionadded:: 3.4
2257-
*context*
2255+
.. versionchanged:: 3.4
2256+
Added the *context* parameter.
22582257

22592258
.. versionchanged:: 3.13
22602259
*processes* uses :func:`os.process_cpu_count` by default, instead of
@@ -2380,7 +2379,7 @@ with the :class:`Pool` class.
23802379
Wait for the worker processes to exit. One must call :meth:`close` or
23812380
:meth:`terminate` before using :meth:`join`.
23822381

2383-
.. versionadded:: 3.3
2382+
.. versionchanged:: 3.3
23842383
Pool objects now support the context management protocol -- see
23852384
:ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the
23862385
pool object, and :meth:`~contextmanager.__exit__` calls :meth:`terminate`.
@@ -2549,7 +2548,7 @@ multiple connections at the same time.
25492548
The address from which the last accepted connection came. If this is
25502549
unavailable then it is ``None``.
25512550

2552-
.. versionadded:: 3.3
2551+
.. versionchanged:: 3.3
25532552
Listener objects now support the context management protocol -- see
25542553
:ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the
25552554
listener object, and :meth:`~contextmanager.__exit__` calls :meth:`close`.

0 commit comments

Comments
 (0)
0