Skip to content

Commit 4f3253a

Browse files
authored
gh-84559: gh-103134: Whats new 3.14 entries for multiprocessing. (GH-126697)
1 parent 6e25eb1 commit 4f3253a

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

Doc/whatsnew/3.14.rst

+25-8
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ concurrent.futures
250250
same process) to Python code. This is separate from the proposed API
251251
in :pep:`734`.
252252
(Contributed by Eric Snow in :gh:`124548`.)
253+
* The default ``ProcessPoolExecutor`` start method (see
254+
:ref:`multiprocessing-start-methods`) changed from *fork* to *forkserver* on
255+
platforms other than macOS & Windows. If you require the threading
256+
incompatible *fork* start method you must explicitly request it by
257+
supplying a *mp_context* to :class:`concurrent.futures.ProcessPoolExecutor`.
258+
(Contributed by Gregory P. Smith in :gh:`84559`.)
253259

254260
ctypes
255261
------
@@ -357,6 +363,25 @@ json
357363
(Contributed by Trey Hunner in :gh:`122873`.)
358364

359365

366+
multiprocessing
367+
---------------
368+
369+
* The default start method (see :ref:`multiprocessing-start-methods`) changed
370+
from *fork* to *forkserver* on platforms other than macOS & Windows where
371+
it was already *spawn*. If you require the threading incompatible *fork*
372+
start method you must explicitly request it using a context from
373+
:func:`multiprocessing.get_context` (preferred) or change the default via
374+
:func:`multiprocessing.set_start_method`.
375+
(Contributed by Gregory P. Smith in :gh:`84559`.)
376+
* The :ref:`multiprocessing proxy objects <multiprocessing-proxy_objects>`
377+
for *list* and *dict* types gain previously overlooked missing methods:
378+
379+
* :meth:`!clear` and :meth:`!copy` for proxies of :class:`list`.
380+
* :meth:`~dict.fromkeys`, ``reversed(d)``, ``d | {}``, ``{} | d``,
381+
``d |= {'b': 2}`` for proxies of :class:`dict`.
382+
383+
(Contributed by Roy Hyunjin Han for :gh:`103134`)
384+
360385
operator
361386
--------
362387

@@ -511,14 +536,6 @@ Deprecated
511536
as a single positional argument.
512537
(Contributed by Serhiy Storchaka in :gh:`109218`.)
513538

514-
* :mod:`multiprocessing` and :mod:`concurrent.futures`:
515-
The default start method (see :ref:`multiprocessing-start-methods`) changed
516-
away from *fork* to *forkserver* on platforms where it was not already
517-
*spawn* (Windows & macOS). If you require the threading incompatible *fork*
518-
start method you must explicitly specify it when using :mod:`multiprocessing`
519-
or :mod:`concurrent.futures` APIs.
520-
(Contributed by Gregory P. Smith in :gh:`84559`.)
521-
522539
* :mod:`os`:
523540
:term:`Soft deprecate <soft deprecated>` :func:`os.popen` and
524541
:func:`os.spawn* <os.spawnl>` functions. They should no longer be used to

0 commit comments

Comments
 (0)