Skip to content

Commit 46b58e1

Browse files
paternalLouis Paternault
andauthored
pythongh-140578: Doc: Remove sencence implying that concurrent.futures.ThreadPoolExecutor does not exist (python#140689)
* Doc: Remove sencence implying that concurrent.futures.ThreadPoolExecutor does not exist Closes python#140578 * Add NEWS.d entry for pythongh-140578 --------- Co-authored-by: Louis Paternault <[email protected]>
1 parent 86513f6 commit 46b58e1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Doc/library/multiprocessing.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ to this, the :mod:`multiprocessing` module allows the programmer to fully
2222
leverage multiple processors on a given machine. It runs on both POSIX and
2323
Windows.
2424

25-
The :mod:`multiprocessing` module also introduces APIs which do not have
26-
analogs in the :mod:`threading` module. A prime example of this is the
25+
The :mod:`multiprocessing` module also introduces the
2726
:class:`~multiprocessing.pool.Pool` object which offers a convenient means of
2827
parallelizing the execution of a function across multiple input values,
2928
distributing the input data across processes (data parallelism). The following
@@ -44,6 +43,10 @@ will print to standard output ::
4443

4544
[1, 4, 9]
4645

46+
The :mod:`multiprocessing` module also introduces APIs which do not have
47+
analogs in the :mod:`threading` module, like the ability to :meth:`terminate
48+
<Process.terminate>`, :meth:`interrupt <Process.interrupt>` or :meth:`kill
49+
<Process.kill>` a running process.
4750

4851
.. seealso::
4952

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Remove outdated sencence in the documentation for :mod:`multiprocessing`,
2+
that implied that :class:`concurrent.futures.ThreadPoolExecutor` did not
3+
exist.

0 commit comments

Comments
 (0)