diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -2370,16 +2370,19 @@ Demonstration of how to create and use customized managers and proxies: .. literalinclude:: ../includes/mp_newtype.py + :language: python Using :class:`Pool`: .. literalinclude:: ../includes/mp_pool.py + :language: python Synchronization types like locks, conditions and queues: .. literalinclude:: ../includes/mp_synchronize.py + :language: python An example showing how to use queues to feed tasks to a collection of worker