]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-140578: Doc: Remove sencence implying that concurrent.futures.ThreadPoolExecutor...
authorLouis <paternal@users.noreply.github.com>
Tue, 11 Nov 2025 04:50:30 +0000 (05:50 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Nov 2025 04:50:30 +0000 (20:50 -0800)
* Doc: Remove sencence implying that concurrent.futures.ThreadPoolExecutor does not exist

Closes #140578

* Add NEWS.d entry for gh-140578

---------

Co-authored-by: Louis Paternault <spalax@gresille.org>
Doc/library/multiprocessing.rst
Misc/NEWS.d/next/Documentation/2025-10-27-23-06-01.gh-issue-140578.FMBdEn.rst [new file with mode: 0644]

index d18ada3511d8910a2342009e11e3fbceaec4c6f1..714207cb0aefcd5d8c8fdaa9ebb320418cf91859 100644 (file)
@@ -22,8 +22,7 @@ to this, the :mod:`multiprocessing` module allows the programmer to fully
 leverage multiple processors on a given machine.  It runs on both POSIX and
 Windows.
 
-The :mod:`multiprocessing` module also introduces APIs which do not have
-analogs in the :mod:`threading` module.  A prime example of this is the
+The :mod:`multiprocessing` module also introduces the
 :class:`~multiprocessing.pool.Pool` object which offers a convenient means of
 parallelizing the execution of a function across multiple input values,
 distributing the input data across processes (data parallelism).  The following
@@ -44,6 +43,10 @@ will print to standard output ::
 
    [1, 4, 9]
 
+The :mod:`multiprocessing` module also introduces APIs which do not have
+analogs in the :mod:`threading` module, like the ability to :meth:`terminate
+<Process.terminate>`, :meth:`interrupt <Process.interrupt>` or :meth:`kill
+<Process.kill>` a running process.
 
 .. seealso::
 
diff --git a/Misc/NEWS.d/next/Documentation/2025-10-27-23-06-01.gh-issue-140578.FMBdEn.rst b/Misc/NEWS.d/next/Documentation/2025-10-27-23-06-01.gh-issue-140578.FMBdEn.rst
new file mode 100644 (file)
index 0000000..702d38d
--- /dev/null
@@ -0,0 +1,3 @@
+Remove outdated sencence in the documentation for :mod:`multiprocessing`,
+that implied that :class:`concurrent.futures.ThreadPoolExecutor` did not
+exist.