Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
documentation cleanup
  • Loading branch information
gpshead committed Jan 28, 2023
commit 8b2029e856c3d8ea19c56d2d10147fa99d18d3b5
6 changes: 3 additions & 3 deletions Doc/library/concurrent.futures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
.. versionchanged:: 3.12
The implcit use of the :mod:`multiprocessing` *fork* start method as a
Comment thread
gpshead marked this conversation as resolved.
Outdated
platform default (see :ref:`multiprocessing-start-methods`) now raises a
:exc:`DeprecationWarning` as the default will be changing in Python >=
3.14. Code that requires *fork* should explicitly specify that when
creating their ProcessPoolExecutor by passing a
:exc:`DeprecationWarning`. The default will change in Python 3.14.
Code that requires *fork* should explicitly specify that when creating
their :class:`ProcessPoolExecutor` by passing a
``mp_context=multiprocessing.get_context('fork')`` parameter.

.. _processpoolexecutor-example:
Expand Down
14 changes: 7 additions & 7 deletions Doc/library/multiprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,7 @@ to start a process. These *start methods* are
inherited by the child process. Note that safely forking a
multithreaded process is problematic.

Available on POSIX systems. Currently the default on POSIX (not macOS).

.. versionchanged:: 3.12
The implicit use of the *fork* start method as the default now raises a
:exc:`DeprecationWarning`. Code that requires it should explicitly
specify *fork* via :func:`get_context` or :func:`set_start_method`.
The default will change in 3.14.
Available on POSIX systems. Currently the default on POSIX except macOS.

*forkserver*
When the program starts and selects the *forkserver* start method,
Expand All @@ -144,6 +138,12 @@ to start a process. These *start methods* are
Available on POSIX platforms which support passing file descriptors
over Unix pipes such as Linux.

.. versionchanged:: 3.12
Implicit use of the *fork* start method as the default now raises a
:exc:`DeprecationWarning`. Code that requires it should explicitly
specify *fork* via :func:`get_context` or :func:`set_start_method`.
The default will change away from *fork* in 3.14.

.. versionchanged:: 3.8

On macOS, the *spawn* start method is now the default. The *fork* start
Expand Down