File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments