[Python-checkins] Fix documentation (GH-13721)

Miss Islington (bot) webhook-mailer at python.org
Wed Jun 5 05:08:20 EDT 2019


https://github.com/python/cpython/commit/d4cf099dff4720a25208b5fa247dc16d86b11ac3
commit: d4cf099dff4720a25208b5fa247dc16d86b11ac3
branch: master
author: Benjamin Yeh <bentyeh at users.noreply.github.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-06-05T02:08:04-07:00
summary:

Fix documentation (GH-13721)



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.

files:
M Doc/library/multiprocessing.rst

diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index a4771d3a84cd..6c07124f9790 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



More information about the Python-checkins mailing list