summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-05 09:14:25 (GMT)
committerGitHub <noreply@github.com>2019-06-05 09:14:25 (GMT)
commitf2054d956529606a08adfd6de133103276c49f7e (patch)
tree4138caffc8408994bdc0fae099c80bb0a4722b1d
parent8899b11b95f08e2e03478f2acad336ad5933a2d1 (diff)
downloadcpython-f2054d956529606a08adfd6de133103276c49f7e.zip
cpython-f2054d956529606a08adfd6de133103276c49f7e.tar.gz
cpython-f2054d956529606a08adfd6de133103276c49f7e.tar.bz2
Fix documentation (GH-13721)
Based on the source code https://github.com/python/cpython/blob/4a686504eb2bbf69adf78077458508a7ba131667/Lib/multiprocessing/pool.pyGH-L755 AsyncResult.successful() raises a ValueError, not an AssertionError. (cherry picked from commit d4cf099dff4720a25208b5fa247dc16d86b11ac3) Co-authored-by: Benjamin Yeh <bentyeh@users.noreply.github.com>
-rw-r--r--Doc/library/multiprocessing.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index a4771d3..6c07124 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -2279,6 +2279,10 @@ with the :class:`Pool` class.
Return whether the call completed without raising an exception. Will
raise :exc:`AssertionError` if the result is not ready.
+ .. versionchanged:: 3.7
+ If the result is not ready, :exc:`ValueError` is raised instead of
+ :exc:`AssertionError`.
+
The following example demonstrates the use of a pool::
from multiprocessing import Pool