Skip to content

Commit

Permalink
pythongh-100408: Fix a traceback in multiprocessing example (python#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka authored Apr 5, 2023
1 parent 3246688 commit a28d4ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Doc/library/multiprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a28d4ed

Please sign in to comment.