summaryrefslogtreecommitdiffstats
path: root/Doc/library/multiprocessing.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-04-14 02:52:29 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-04-14 02:52:29 (GMT)
commit584fbbb32d00435e14433dc892619769d1f8719a (patch)
treea307f20dacd5289b68368a81d9792b19de3b6bf0 /Doc/library/multiprocessing.rst
parent2c4efa871e37ea792c80bdb34b3bf1e601d48b9a (diff)
parentf86b28e3d2179d4da9011d763276f3b174ffe235 (diff)
downloadcpython-584fbbb32d00435e14433dc892619769d1f8719a.zip
cpython-584fbbb32d00435e14433dc892619769d1f8719a.tar.gz
cpython-584fbbb32d00435e14433dc892619769d1f8719a.tar.bz2
#14535: merge with 3.2.
Diffstat (limited to 'Doc/library/multiprocessing.rst')
-rw-r--r--Doc/library/multiprocessing.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index d8e1d92..1c7b9b9 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -1142,7 +1142,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:
@@ -2370,16 +2370,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