summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-06-29 11:29:22 (GMT)
committerGitHub <noreply@github.com>2023-06-29 11:29:22 (GMT)
commitb952ebe4be15b2beb57a745459e0e01724f89686 (patch)
tree87a599b709b5a954952265db4206097224a71054 /Doc/library
parentb937ca0a5afc5158dee1a503ec0e9f6e2726c867 (diff)
downloadcpython-b952ebe4be15b2beb57a745459e0e01724f89686.zip
cpython-b952ebe4be15b2beb57a745459e0e01724f89686.tar.gz
cpython-b952ebe4be15b2beb57a745459e0e01724f89686.tar.bz2
[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@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/multiprocessing.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index b5ceeb7..26b057f 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