We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3cd3d1 commit f3f0cdeCopy full SHA for f3f0cde
Doc/library/multiprocessing.rst
@@ -452,7 +452,7 @@ process which created it.
452
importable by the children. This is covered in :ref:`multiprocessing-programming`
453
however it is worth pointing out here. This means that some examples, such
454
as the :class:`multiprocessing.pool.Pool` examples will not work in the
455
- interactive interpreter. For example::
+ interactive interpreter. For example, this::
456
457
>>> from multiprocessing import Pool
458
>>> p = Pool(5)
@@ -461,6 +461,11 @@ process which created it.
461
...
462
>>> with p:
463
... p.map(f, [1,2,3])
464
+
465
+ Will result in:
466
467
+ .. code-block:: text
468
469
Process PoolWorker-1:
470
Process PoolWorker-2:
471
Process PoolWorker-3:
0 commit comments