Skip to content

Commit c64de22

Browse files
committed
initial commit
1 parent b6d3242 commit c64de22

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Doc/library/multiprocessing.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,21 @@ The :mod:`multiprocessing` package mostly replicates the API of the
544544
.. versionchanged:: 3.3
545545
Added the *daemon* parameter.
546546

547+
.. note::
548+
549+
Starting with Python 3.14, ``'fork'`` is no longer the default start
550+
method on any operating system. When creating a new ``Process`` object
551+
in a REPL session, with a start method such as ``'spawn'`` or ``'forkserver'``
552+
(other than ``'fork'``), the *target* argument must be
553+
a callable object **mandatorily** defined in a module.
554+
555+
Using a callable object defined in the current REPL session raises
556+
an :exc:`AttributeError` exception when starting the process,
557+
although this is still possible when the start method is ``'fork'``.
558+
559+
This also applies to the use of the
560+
:class:`concurrent.futures.ProcessPoolExecutor` class.
561+
547562
.. method:: run()
548563

549564
Method representing the process's activity.

0 commit comments

Comments
 (0)