summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-04-05 11:43:26 (GMT)
committerGitHub <noreply@github.com>2023-04-05 11:43:26 (GMT)
commita28d4edb23b7150942f1eceb9e97c6f53aa4de42 (patch)
tree389963ebc40f54ed9be52966d8c5be22d3df8178
parent3246688918a428738b61c4adb5fbc6525eae96f9 (diff)
downloadcpython-a28d4edb23b7150942f1eceb9e97c6f53aa4de42.zip
cpython-a28d4edb23b7150942f1eceb9e97c6f53aa4de42.tar.gz
cpython-a28d4edb23b7150942f1eceb9e97c6f53aa4de42.tar.bz2
gh-100408: Fix a traceback in multiprocessing example (#100409)
-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 0ec47bb..8454296 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -460,16 +460,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__' (<class '_frozen_importlib.BuiltinImporter'>)>
+ AttributeError: Can't get attribute 'f' on <module '__main__' (<class '_frozen_importlib.BuiltinImporter'>)>
+ AttributeError: Can't get attribute 'f' on <module '__main__' (<class '_frozen_importlib.BuiltinImporter'>)>
(If you try this it will actually output three full tracebacks
interleaved in a semi-random fashion, and then you may have to