Skip to content

Commit f3f0cde

Browse files
committed
Split code block up in docs to avoid pygments/pygments#2226 in 2.15.0
1 parent c3cd3d1 commit f3f0cde

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Doc/library/multiprocessing.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ process which created it.
452452
importable by the children. This is covered in :ref:`multiprocessing-programming`
453453
however it is worth pointing out here. This means that some examples, such
454454
as the :class:`multiprocessing.pool.Pool` examples will not work in the
455-
interactive interpreter. For example::
455+
interactive interpreter. For example, this::
456456

457457
>>> from multiprocessing import Pool
458458
>>> p = Pool(5)
@@ -461,6 +461,11 @@ process which created it.
461461
...
462462
>>> with p:
463463
... p.map(f, [1,2,3])
464+
465+
Will result in:
466+
467+
.. code-block:: text
468+
464469
Process PoolWorker-1:
465470
Process PoolWorker-2:
466471
Process PoolWorker-3:

0 commit comments

Comments
 (0)