[Python-checkins] [3.11] gh-100408: Fix a traceback in multiprocessing example (GH-100409) (GH-106231)

serhiy-storchaka webhook-mailer at python.org
Thu Jun 29 07:29:26 EDT 2023


https://github.com/python/cpython/commit/b952ebe4be15b2beb57a745459e0e01724f89686
commit: b952ebe4be15b2beb57a745459e0e01724f89686
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2023-06-29T14:29:22+03:00
summary:

[3.11] gh-100408: Fix a traceback in multiprocessing example (GH-100409) (GH-106231)

(cherry picked from commit a28d4edb23b7150942f1eceb9e97c6f53aa4de42)

Co-authored-by: Serhiy Storchaka <storchaka at gmail.com>

files:
M Doc/library/multiprocessing.rst

diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index b5ceeb796f8f2..26b057f297bf7 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -453,16 +453,16 @@ process which created it.
       ...     return x*x
       ...
       >>> with p:
-      ...   p.map(f, [1,2,3])
+      ...     p.map(f, [1,2,3])
       Process PoolWorker-1:
       Process PoolWorker-2:
       Process PoolWorker-3:
       Traceback (most recent call last):
       Traceback (most recent call last):
       Traceback (most recent call last):
-      AttributeError: 'module' object has no attribute 'f'
-      AttributeError: 'module' object has no attribute 'f'
-      AttributeError: 'module' object has no attribute 'f'
+      AttributeError: Can't get attribute 'f' on <module '__main__' (built-in)>
+      AttributeError: Can't get attribute 'f' on <module '__main__' (built-in)>
+      AttributeError: Can't get attribute 'f' on <module '__main__' (built-in)>
 
    (If you try this it will actually output three full tracebacks
    interleaved in a semi-random fashion, and then you may have to



More information about the Python-checkins mailing list