Skip to content

Commit c39baf1

Browse files
[3.11] gh-115664: Fix versionadded and versionchanged directives in multiprocessing.rst (GH-115665) (GH-115682)
(cherry picked from commit 8f60298)
1 parent 61f2085 commit c39baf1

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

Doc/library/multiprocessing.rst

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,19 @@ to start a process. These *start methods* are
137137
Available on Unix platforms which support passing file descriptors
138138
over Unix pipes.
139139

140-
.. versionchanged:: 3.8
141-
142-
On macOS, the *spawn* start method is now the default. The *fork* start
143-
method should be considered unsafe as it can lead to crashes of the
144-
subprocess. See :issue:`33725`.
145-
146140
.. versionchanged:: 3.4
147141
*spawn* added on all Unix platforms, and *forkserver* added for
148142
some Unix platforms.
149143
Child processes no longer inherit all of the parents inheritable
150144
handles on Windows.
151145

152-
On Unix using the *spawn* or *forkserver* start methods will also
146+
.. versionchanged:: 3.8
147+
148+
On macOS, the *spawn* start method is now the default. The *fork* start
149+
method should be considered unsafe as it can lead to crashes of the
150+
subprocess as macOS system libraries may start threads. See :issue:`33725`.
151+
152+
On POSIX using the *spawn* or *forkserver* start methods will also
153153
start a *resource tracker* process which tracks the unlinked named
154154
system resources (such as named semaphores or
155155
:class:`~multiprocessing.shared_memory.SharedMemory` objects) created
@@ -506,7 +506,7 @@ The :mod:`multiprocessing` package mostly replicates the API of the
506506
to the process.
507507

508508
.. versionchanged:: 3.3
509-
Added the *daemon* argument.
509+
Added the *daemon* parameter.
510510

511511
.. method:: run()
512512

@@ -1208,8 +1208,7 @@ Connection objects are usually created using
12081208
Connection objects themselves can now be transferred between processes
12091209
using :meth:`Connection.send` and :meth:`Connection.recv`.
12101210

1211-
.. versionadded:: 3.3
1212-
Connection objects now support the context management protocol -- see
1211+
Connection objects also now support the context management protocol -- see
12131212
:ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the
12141213
connection object, and :meth:`~contextmanager.__exit__` calls :meth:`close`.
12151214

@@ -2212,11 +2211,11 @@ with the :class:`Pool` class.
22122211
as CPython does not assure that the finalizer of the pool will be called
22132212
(see :meth:`object.__del__` for more information).
22142213

2215-
.. versionadded:: 3.2
2216-
*maxtasksperchild*
2214+
.. versionchanged:: 3.2
2215+
Added the *maxtasksperchild* parameter.
22172216

2218-
.. versionadded:: 3.4
2219-
*context*
2217+
.. versionchanged:: 3.4
2218+
Added the *context* parameter.
22202219

22212220
.. note::
22222221

@@ -2338,7 +2337,7 @@ with the :class:`Pool` class.
23382337
Wait for the worker processes to exit. One must call :meth:`close` or
23392338
:meth:`terminate` before using :meth:`join`.
23402339

2341-
.. versionadded:: 3.3
2340+
.. versionchanged:: 3.3
23422341
Pool objects now support the context management protocol -- see
23432342
:ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the
23442343
pool object, and :meth:`~contextmanager.__exit__` calls :meth:`terminate`.
@@ -2507,7 +2506,7 @@ multiple connections at the same time.
25072506
The address from which the last accepted connection came. If this is
25082507
unavailable then it is ``None``.
25092508

2510-
.. versionadded:: 3.3
2509+
.. versionchanged:: 3.3
25112510
Listener objects now support the context management protocol -- see
25122511
:ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the
25132512
listener object, and :meth:`~contextmanager.__exit__` calls :meth:`close`.

0 commit comments

Comments
 (0)