]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-84559: Deprecate fork being the multiprocessing default. (#100618)
authorGregory P. Smith <greg@krypto.org>
Thu, 2 Feb 2023 23:50:35 +0000 (15:50 -0800)
committerGitHub <noreply@github.com>
Thu, 2 Feb 2023 23:50:35 +0000 (15:50 -0800)
commit0ca67e6313c11263ecaef7ce182308eeb5aa6814
treeff302df77417456ee4dcf94082b6d942e320b13a
parent618b7a8260bb40290d6551f24885931077309590
GH-84559: Deprecate fork being the multiprocessing default. (#100618)

This starts the process. Users who don't specify their own start method
and use the default on platforms where it is 'fork' will see a
DeprecationWarning upon multiprocessing.Pool() construction or upon
multiprocessing.Process.start() or concurrent.futures.ProcessPool use.

See the related issue and documentation within this change for details.
16 files changed:
Doc/library/concurrent.futures.rst
Doc/library/multiprocessing.rst
Doc/whatsnew/3.12.rst
Lib/compileall.py
Lib/concurrent/futures/process.py
Lib/multiprocessing/context.py
Lib/test/_test_multiprocessing.py
Lib/test/_test_venv_multiprocessing.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_concurrent_futures.py
Lib/test/test_fcntl.py
Lib/test/test_logging.py
Lib/test/test_multiprocessing_defaults.py [new file with mode: 0644]
Lib/test/test_pickle.py
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2023-01-01-01-19-33.gh-issue-84559.zEjsEJ.rst [new file with mode: 0644]