]> granicus.if.org Git - python/commitdiff
Fix documentation (GH-13721)
authorBenjamin Yeh <bentyeh@users.noreply.github.com>
Wed, 5 Jun 2019 09:08:04 +0000 (02:08 -0700)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Jun 2019 09:08:04 +0000 (02:08 -0700)
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.

Doc/library/multiprocessing.rst

index a4771d3a84cd40925f2729a3049c844243284ce6..6c07124f97907afe161584471ebc68c403e2fa55 100644 (file)
@@ -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