diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-04-14 02:50:48 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-04-14 02:50:48 (GMT) |
commit | f86b28e3d2179d4da9011d763276f3b174ffe235 (patch) | |
tree | a2520f75d6cb0e263bcbf132b576f11fba3141e8 /Doc | |
parent | 650dfaf5c4aa5033f5b6659f185957ca3d21171e (diff) | |
download | cpython-f86b28e3d2179d4da9011d763276f3b174ffe235.zip cpython-f86b28e3d2179d4da9011d763276f3b174ffe235.tar.gz cpython-f86b28e3d2179d4da9011d763276f3b174ffe235.tar.bz2 |
#14535: fix code highlight in multiprocessing examples. Patch by Tshepang Lekhonkhobe.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/multiprocessing.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 7db2aed..a9512f3 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -1114,7 +1114,7 @@ The results printed are :: HELLO WORLD [(3.515625, 39.0625), (33.0625, 4.0), (5.640625, 90.25)] -.. highlight:: python +.. highlight:: python3 .. _multiprocessing-managers: @@ -2256,16 +2256,19 @@ Examples Demonstration of how to create and use customized managers and proxies: .. literalinclude:: ../includes/mp_newtype.py + :language: python3 Using :class:`Pool`: .. literalinclude:: ../includes/mp_pool.py + :language: python3 Synchronization types like locks, conditions and queues: .. literalinclude:: ../includes/mp_synchronize.py + :language: python3 An example showing how to use queues to feed tasks to a collection of worker |