Miss Islington (bot)
d74438b633
bpo-33725, multiprocessing doc: rephase warning against fork on macOS (GH-13841)
...
Co-Authored-By: Barry Warsaw <barry@python.org>
(cherry picked from commit 1e77ab0a35
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-06-05 13:07:19 -07:00
Miss Islington (bot)
f2054d9565
Fix documentation (GH-13721)
...
Based on the source code 4a686504eb/Lib/multiprocessing/pool.pyGH-L755
AsyncResult.successful() raises a ValueError, not an AssertionError.
(cherry picked from commit d4cf099dff
)
Co-authored-by: Benjamin Yeh <bentyeh@users.noreply.github.com>
2019-06-05 02:14:25 -07:00
Victor Stinner
17a5588740
bpo-33725: multiprocessing uses spawn by default on macOS (GH-13603)
...
On macOS, the multiprocessing module now uses the "spawn" start
method by default.
2019-05-28 16:02:50 +02:00
Thomas Moreau
c09a9f56c0
bpo-36888: Add multiprocessing.parent_process() (GH-13247)
2019-05-20 21:37:05 +02:00
Pierre Glaser
50466c6650
bpo-36867: DOC update multiprocessing.rst (GH-13289)
...
Followup to bpo-36867.
2019-05-13 19:20:48 +02:00
Julien Palard
d9bd8ec2a4
Doc: Fix inconsistency in multiprocessing (GH-12273)
2019-03-11 14:54:48 +01:00
Windson yang
3bab40db96
bpo-34134: Advise to use imap or imap_unordered when handling long iterables. (gh-8324)
2019-01-25 13:01:41 +01:00
Bo Bayles
bab4bbb4c9
bpo-32146: Add documentation about frozen executables on Unix (GH-5850)
2019-01-10 18:51:28 +01:00
Victor Stinner
7acd50ad8b
bpo-35491: Enhance multiprocessing.BaseProcess.__repr__() (GH-11138)
...
* 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>
2018-12-14 12:58:52 +01:00
Zackery Spytz
0461704060
bpo-22872: multiprocessing.Queue's put() and get() now raise ValueError if the queue is closed. (GH-9010)
...
Previously, put() and get() would raise AssertionError and OSError,
respectively.
2018-10-13 12:26:09 +03:00
Stéphane Wirtel
859c068e52
bpo-34962: make doctest in Doc/ now passes, and is enforced in CI (GH-9806)
2018-10-12 09:51:05 +02:00
Victor Stinner
5e922658fb
bpo-34605: Avoid master/slave terms (GH-9101)
...
* 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
2018-09-07 17:30:33 +02:00
Bo Bayles
9f3535c9cd
bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)
2018-04-29 21:03:05 +03:00
Jason Yang
c172fc5031
bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)
2017-11-27 04:18:33 +03:00
Victor Stinner
8c663fd60e
Replace KB unit with KiB ( #4293 )
...
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.
2017-11-08 14:44:44 -08:00
Jelle Zijlstra
1e5d54cfa0
bpo-31965: fix doc for multiprocessing.connection.Client and Listener ( #4304 )
...
* 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.
2017-11-07 17:13:02 +01:00
Pablo Galindo
11225753a8
bpo-31304: Update starmap_async documentation. (GH-4168)
...
Update the kwarg in the documentation of `multiprocessing.pool.Pool.starmap_async`, from `error_back` to `error_callback` to match the source code..
2017-10-30 11:39:28 -07:00
Yuval Langer
6fcb69dad5
Fix trivial typo in multiprocessing documentation (GH-2930)
2017-07-28 10:39:35 -07:00
Vitor Pereira
ba75af7130
bpo-30794: added kill() method to multiprocessing.Process ( #2528 )
...
* 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
2017-07-18 17:34:23 +02:00
Antoine Pitrou
13e96cc596
Fix bpo-30596: Add close() method to multiprocessing.Process ( #2010 )
...
* 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
2017-06-24 19:22:23 +02:00
Sylvain Bellemare
5619ab2db3
doc: Fix small typos in library/multiprocessing (GH-698)
2017-03-24 17:26:07 +09:00
Serhiy Storchaka
989db5c880
Issue #19795 : Mark up None as literal text.
2016-10-19 16:37:13 +03:00
Serhiy Storchaka
ecf41da83e
Issue #19795 : Mark up None as literal text.
2016-10-19 16:29:26 +03:00
Berker Peksag
de10dbec77
Issue #10673 : Merge from 3.5
2016-09-26 23:22:44 +03:00
Berker Peksag
a24d2d8274
Issue #10673 : Document that Process.exitcode can be used to determine timeout
...
Patch by Tom Clark.
2016-09-26 23:22:22 +03:00
Davin Potts
86a7668426
Fixes issue #6766 : Updated multiprocessing Proxy Objects to support nesting
2016-09-07 18:48:01 -05:00
Berker Peksag
89f27e5888
Merge from 3.5
2016-06-12 12:26:08 +03:00
Berker Peksag
00eaa8a53b
Use exc role for ValueError in multiprocessing.rst
2016-06-12 12:25:43 +03:00
Berker Peksag
db287b5ca7
Issue #27221 : Merge from 3.5
2016-06-12 12:19:39 +03:00
Berker Peksag
0b19e1e72c
Issue #27221 : Delete an outdated paragraph about pickle support of Process
...
Initial patch by Jelle Zijlstra.
2016-06-12 12:19:13 +03:00
Terry Jan Reedy
4da945f361
Merge Issue #22558 .
2016-06-11 15:06:08 -04:00
Terry Jan Reedy
fa089b9b0b
Issue #22558 : Add remaining doc links to source code for Python-coded modules.
...
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
2016-06-11 15:02:54 -04:00
Martin Panter
e501a93c18
Issue #27125 : Merge typo fixes from 3.5
...
Also merge changes from Issue #27117 ; no actual code changes to 3.6.
2016-05-29 09:05:06 +00:00
Martin Panter
8d56c026a5
Issue #27125 : Fix various errors like “will [be] inherited”
2016-05-29 04:13:35 +00:00
Serhiy Storchaka
4ecfa455ae
Expand abbreviations FIFO and LIFO.
2016-05-16 09:31:54 +03:00
Serhiy Storchaka
c499f30286
Issue #23921 : Standardized documentation whitespace formatting.
...
Original patch by James Edwards.
2016-05-10 12:01:56 +03:00
Serhiy Storchaka
dba903993a
Issue #23921 : Standardized documentation whitespace formatting.
...
Original patch by James Edwards.
2016-05-10 12:01:23 +03:00
Victor Stinner
a6d865c128
Issue #25654 :
...
* 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.
2016-03-25 09:29:50 +01:00
Berker Peksag
2e15d60b83
Issue #18620 : Improve Pool examples in multiprocessing documentation
...
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.
2016-01-22 00:00:06 +02:00
Berker Peksag
7405c16533
Issue #18620 : Improve Pool examples in multiprocessing documentation
...
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.
2016-01-21 23:59:49 +02:00
Senthil Kumaran
316fcc867b
merge from 3.5
...
issue25982 - Add a class definition for managers.Namespace in the multiprocessing docs.
2016-01-20 03:11:52 -08:00
Senthil Kumaran
6a0514ea20
issue25982 - Add a class definition for managers.Namespace in the multiprocessing docs.
2016-01-20 03:10:13 -08:00
Berker Peksag
d56e67e116
Issue #5501 : Clarify that invoking freeze_support() on non-Windows platforms has no effect
...
Patch by Davin Potts and Camilla Montonen.
2016-01-07 18:45:47 +02:00
Berker Peksag
94541f464c
Issue #5501 : Clarify that invoking freeze_support() on non-Windows platforms has no effect
...
Patch by Davin Potts and Camilla Montonen.
2016-01-07 18:45:22 +02:00
Martin Panter
e56a919100
Issue #25523 : Merge a-to-an corrections from 3.5
2015-11-02 04:27:17 +00:00
Martin Panter
2eb819f7a8
Issue #25523 : Merge "a" to "an" fixes from 3.4 into 3.5
2015-11-02 04:04:57 +00:00
Martin Panter
7462b64911
Issue #25523 : Correct "a" article to "an" article
...
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.
2015-11-02 03:37:02 +00:00
Martin Panter
430f657c67
Issue #25161 : Merge full stops from 3.5
2015-10-10 10:45:00 +00:00
Martin Panter
84835ab1cb
Issue #25161 : Merge full stops from 3.4 into 3.5
2015-10-10 10:44:25 +00:00
Martin Panter
d21e0b52f1
Issue #25161 : Add full stops in documentation; patch by Takase Arihiro
2015-10-10 10:36:22 +00:00