summaryrefslogtreecommitdiffstats
path: root/Doc/library/multiprocessing.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-27873: Update docstring for multiprocessing.Pool.map (GH-17436)An Long2019-12-031-1/+2
| | | | | | | | Update docstring for `multiprocessing.Pool.map` to mention `pool.starmap()`. Prev PR: https://github.com/python/cpython/pull/17367 @aeros https://bugs.python.org/issue27873
* bpo-33725, multiprocessing doc: rephase warning against fork on macOS (GH-13841)Victor Stinner2019-06-051-2/+3
| | | Co-Authored-By: Barry Warsaw <barry@python.org>
* Fix documentation (GH-13721)Benjamin Yeh2019-06-051-0/+4
| | | Based on the source code https://github.com/python/cpython/blob/4a686504eb2bbf69adf78077458508a7ba131667/Lib/multiprocessing/pool.py#L755 AsyncResult.successful() raises a ValueError, not an AssertionError.
* bpo-33725: multiprocessing uses spawn by default on macOS (GH-13603)Victor Stinner2019-05-281-1/+6
| | | | On macOS, the multiprocessing module now uses the "spawn" start method by default.
* bpo-36888: Add multiprocessing.parent_process() (GH-13247)Thomas Moreau2019-05-201-0/+8
|
* bpo-36867: DOC update multiprocessing.rst (GH-13289)Pierre Glaser2019-05-131-6/+10
| | | Followup to bpo-36867.
* Doc: Fix inconsistency in multiprocessing (GH-12273)Julien Palard2019-03-111-1/+1
|
* bpo-34134: Advise to use imap or imap_unordered when handling long ↵Windson yang2019-01-251-1/+5
| | | | iterables. (gh-8324)
* bpo-32146: Add documentation about frozen executables on Unix (GH-5850)Bo Bayles2019-01-101-0/+7
|
* bpo-35491: Enhance multiprocessing.BaseProcess.__repr__() (GH-11138)Victor Stinner2018-12-141-3/+3
| | | | | | | | | | | | | | | | * Add the pid and parent pid to multiprocessing.BaseProcess.__repr__(). * Add negative sign (ex: "-SIGTERM") to exitcode (process killed by a signal) * Only call _popen.poll() once. Example: <ForkProcess(ForkPoolWorker-1, started daemon)> becomes: <ForkProcess name='ForkPoolWorker-1' pid=12449 parent=12448 started daemon> Example: <ForkProcess(ForkPoolWorker-1, stopped[SIGTERM] daemon)> becomes: <ForkProcess name='ForkPoolWorker-1' pid=12960 parent=12959 stopped exitcode=-SIGTERM daemon>
* bpo-22872: multiprocessing.Queue's put() and get() now raise ValueError if ↵Zackery Spytz2018-10-131-0/+8
| | | | | | | the queue is closed. (GH-9010) Previously, put() and get() would raise AssertionError and OSError, respectively.
* bpo-34962: make doctest in Doc/ now passes, and is enforced in CI (GH-9806)Stéphane Wirtel2018-10-121-3/+4
|
* bpo-34605: Avoid master/slave terms (GH-9101)Victor Stinner2018-09-071-1/+1
| | | | | | | * Replace "master process" with "parent process" * Replace "master option mappings" with "main option mappings" * Replace "master pattern object" with "main pattern object" * ssl: replace "master" with "server" * And some other similar changes
* bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)Bo Bayles2018-04-291-11/+17
|
* bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)Jason Yang2017-11-271-2/+2
|
* Replace KB unit with KiB (#4293)Victor Stinner2017-11-081-2/+2
| | | | | | | | | | | kB (*kilo* byte) unit means 1000 bytes, whereas KiB ("kibibyte") means 1024 bytes. KB was misused: replace kB or KB with KiB when appropriate. Same change for MB and GB which become MiB and GiB. Change the output of Tools/iobench/iobench.py. Round also the size of the documentation from 5.5 MB to 5 MiB.
* bpo-31965: fix doc for multiprocessing.connection.Client and Listener (#4304)Jelle Zijlstra2017-11-071-19/+11
| | | | | | | | | | | | | * fix doc for multiprocessing.connection.Client The authenticate argument does not exist on either Client or Listener: - https://github.com/python/cpython/blob/master/Lib/multiprocessing/connection.py#L483 (master) - https://github.com/python/cpython/blob/3.6/Lib/multiprocessing/connection.py#L478 (3.6) - https://github.com/python/cpython/blob/3.5/Lib/multiprocessing/connection.py#L478 (3.5) - https://github.com/python/cpython/blob/3.4/Lib/multiprocessing/connection.py#L487 (3.4) The documentation also claimed that these functions will call `current_process().auth_key`, for which I could find no evidence in the code. I rewrote the documentation to reflect the actual behavior. Also made some small changes to vary sentence structure.
* bpo-31304: Update starmap_async documentation. (GH-4168)Pablo Galindo2017-10-301-1/+1
| | | Update the kwarg in the documentation of `multiprocessing.pool.Pool.starmap_async`, from `error_back` to `error_callback` to match the source code..
* Fix trivial typo in multiprocessing documentation (GH-2930)Yuval Langer2017-07-281-1/+1
|
* bpo-30794: added kill() method to multiprocessing.Process (#2528)Vitor Pereira2017-07-181-0/+6
| | | | | | | | | | | | | | * bpo-30794: added kill() method to multiprocessing.Process * Added entries to documentation and NEWS * Refactored test_terminate and test_kill * Fix SIGTERM and SIGKILL being used on Windows for the tests * Added "versionadded" marker to the documentation * Fix trailing whitespace in doc
* Fix bpo-30596: Add close() method to multiprocessing.Process (#2010)Antoine Pitrou2017-06-241-0/+10
| | | | | | | | | | * Fix bpo-30596: Add close() method to multiprocessing.Process * Raise ValueError if close() is called before the Process is finished running * Add docs * Add NEWS blurb
* doc: Fix small typos in library/multiprocessing (GH-698)Sylvain Bellemare2017-03-241-2/+2
|
* Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-5/+5
|\
| * Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-5/+5
| |
* | Issue #10673: Merge from 3.5Berker Peksag2016-09-261-0/+3
|\ \ | |/
| * Issue #10673: Document that Process.exitcode can be used to determine timeoutBerker Peksag2016-09-261-0/+3
| | | | | | | | Patch by Tom Clark.
* | Fixes issue #6766: Updated multiprocessing Proxy Objects to support nestingDavin Potts2016-09-071-29/+54
| |
* | Merge from 3.5Berker Peksag2016-06-121-1/+1
|\ \ | |/
| * Use exc role for ValueError in multiprocessing.rstBerker Peksag2016-06-121-1/+1
| |
* | Issue #27221: Merge from 3.5Berker Peksag2016-06-121-6/+1
|\ \ | |/
| * Issue #27221: Delete an outdated paragraph about pickle support of ProcessBerker Peksag2016-06-121-6/+1
| | | | | | | | Initial patch by Jelle Zijlstra.
* | Merge Issue #22558.Terry Jan Reedy2016-06-111-0/+3
|\ \ | |/
| * Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+3
| | | | | | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* | Issue #27125: Merge typo fixes from 3.5Martin Panter2016-05-291-1/+1
|\ \ | |/ | | | | Also merge changes from Issue #27117; no actual code changes to 3.6.
| * Issue #27125: Fix various errors like “will [be] inherited”Martin Panter2016-05-291-1/+1
| |
* | Expand abbreviations FIFO and LIFO.Serhiy Storchaka2016-05-161-2/+3
| |
* | Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-4/+4
|\ \ | |/ | | | | Original patch by James Edwards.
| * Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-4/+4
| | | | | | | | Original patch by James Edwards.
| * Issue #25654:Victor Stinner2016-03-251-1/+1
| | | | | | | | | | | | | | | | | | * multiprocessing: open file with closefd=False to avoid ResourceWarning * _test_multiprocessing: open file with O_EXCL to detect bugs in tests (if a previous test forgot to remove TESTFN) * test_sys_exit(): remove TESTFN after each loop iteration Initial patch written by Serhiy Storchaka.
* | Issue #25654:Victor Stinner2016-03-251-1/+1
| | | | | | | | | | | | | | | | | | * multiprocessing: open file with closefd=False to avoid ResourceWarning * _test_multiprocessing: open file with O_EXCL to detect bugs in tests (if a previous test forgot to remove TESTFN) * test_sys_exit(): remove TESTFN after each loop iteration Initial patch written by Serhiy Storchaka.
* | Issue #18620: Improve Pool examples in multiprocessing documentationBerker Peksag2016-01-211-11/+26
|\ \ | |/ | | | | | | | | | | | | | | | | A single call to Pool.apply_async() will create only one process. To use all of the pool's processes, it should be invoked multiple times: with Pool(processes=4) as pool: results = [pool.apply_async(func, ()) for i in range(4)] Patch by Davin Potts.
| * Issue #18620: Improve Pool examples in multiprocessing documentationBerker Peksag2016-01-211-11/+26
| | | | | | | | | | | | | | | | | | | | A single call to Pool.apply_async() will create only one process. To use all of the pool's processes, it should be invoked multiple times: with Pool(processes=4) as pool: results = [pool.apply_async(func, ()) for i in range(4)] Patch by Davin Potts.
* | merge from 3.5Senthil Kumaran2016-01-201-15/+17
|\ \ | |/ | | | | issue25982 - Add a class definition for managers.Namespace in the multiprocessing docs.
| * issue25982 - Add a class definition for managers.Namespace in the ↵Senthil Kumaran2016-01-201-15/+17
| | | | | | | | multiprocessing docs.
* | Issue #5501: Clarify that invoking freeze_support() on non-Windows platforms ↵Berker Peksag2016-01-071-2/+4
|\ \ | |/ | | | | | | | | has no effect Patch by Davin Potts and Camilla Montonen.
| * Issue #5501: Clarify that invoking freeze_support() on non-Windows platforms ↵Berker Peksag2016-01-071-2/+4
| | | | | | | | | | | | has no effect Patch by Davin Potts and Camilla Montonen.
* | Issue #25523: Merge a-to-an corrections from 3.5Martin Panter2015-11-021-1/+1
|\ \ | |/
| * Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-1/+1
| |\
| | * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | | | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | | Issue #25161: Merge full stops from 3.5Martin Panter2015-10-101-3/+3
|\ \ \ | |/ /