@@ -56,7 +56,7 @@ will print to standard output ::
5656
5757
5858The :class: `Process ` class
59- ~~~~~~~~~~~~~~~~~~~~~~~~~~
59+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
6060
6161In :mod: `multiprocessing `, processes are spawned by creating a :class: `Process `
6262object and then calling its :meth: `~Process.start ` method. :class: `Process `
@@ -102,7 +102,7 @@ necessary, see :ref:`multiprocessing-programming`.
102102.. _multiprocessing-start-methods :
103103
104104Contexts and start methods
105- ~~~~~~~~~~~~~~~~~~~~~~~~~~
105+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
106106
107107Depending on the platform, :mod: `multiprocessing ` supports three ways
108108to start a process. These *start methods * are
@@ -231,7 +231,7 @@ library user.
231231
232232
233233Exchanging objects between processes
234- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
234+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
235235
236236:mod: `multiprocessing ` supports two types of communication channel between
237237processes:
@@ -283,7 +283,7 @@ processes:
283283
284284
285285Synchronization between processes
286- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
286+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
287287
288288:mod: `multiprocessing ` contains equivalents of all the synchronization
289289primitives from :mod: `threading `. For instance one can use a lock to ensure
@@ -309,7 +309,7 @@ mixed up.
309309
310310
311311Sharing state between processes
312- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
312+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
313313
314314As mentioned above, when doing concurrent programming it is usually best to
315315avoid using shared state as far as possible. This is particularly true when
@@ -399,7 +399,7 @@ However, if you really do need to use some shared data then
399399
400400
401401Using a pool of workers
402- ~~~~~~~~~~~~~~~~~~~~~~~
402+ ^^^^^^^^^^^^^^^^^^^^^^^
403403
404404The :class: `~multiprocessing.pool.Pool ` class represents a pool of worker
405405processes. It has methods which allows tasks to be offloaded to the worker
@@ -490,7 +490,7 @@ The :mod:`multiprocessing` package mostly replicates the API of the
490490
491491
492492:class: `Process ` and exceptions
493- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
493+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
494494
495495.. class :: Process(group=None, target=None, name=None, args=(), kwargs={}, \
496496 *, daemon=None)
@@ -724,7 +724,7 @@ The :mod:`multiprocessing` package mostly replicates the API of the
724724 Raised by methods with a timeout when the timeout expires.
725725
726726Pipes and Queues
727- ~~~~~~~~~~~~~~~~
727+ ^^^^^^^^^^^^^^^^
728728
729729When using multiple processes, one generally uses message passing for
730730communication between processes and avoids having to use any synchronization
@@ -981,7 +981,7 @@ For an example of the usage of queues for interprocess communication see
981981
982982
983983Miscellaneous
984- ~~~~~~~~~~~~~
984+ ^^^^^^^^^^^^^
985985
986986.. function :: active_children()
987987
@@ -1150,7 +1150,7 @@ Miscellaneous
11501150
11511151
11521152Connection Objects
1153- ~~~~~~~~~~~~~~~~~~
1153+ ^^^^^^^^^^^^^^^^^^
11541154
11551155.. currentmodule :: multiprocessing.connection
11561156
@@ -1292,7 +1292,7 @@ For example:
12921292
12931293
12941294Synchronization primitives
1295- ~~~~~~~~~~~~~~~~~~~~~~~~~~
1295+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
12961296
12971297.. currentmodule :: multiprocessing
12981298
@@ -1481,7 +1481,7 @@ object -- see :ref:`multiprocessing-managers`.
14811481
14821482
14831483Shared :mod: `ctypes ` Objects
1484- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1484+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14851485
14861486It is possible to create shared objects using shared memory which can be
14871487inherited by child processes.
@@ -1543,7 +1543,7 @@ inherited by child processes.
15431543
15441544
15451545The :mod: `multiprocessing.sharedctypes ` module
1546- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
1546+ """"""""""""""""""""""""""""""""""""""""""""""
15471547
15481548.. module :: multiprocessing.sharedctypes
15491549 :synopsis: Allocate ctypes objects from shared memory.
@@ -1709,7 +1709,7 @@ The results printed are ::
17091709.. _multiprocessing-managers :
17101710
17111711Managers
1712- ~~~~~~~~
1712+ ^^^^^^^^
17131713
17141714Managers provide a way to create data which can be shared between different
17151715processes, including sharing over a network between processes running on
@@ -1954,7 +1954,7 @@ their parent process exits. The manager classes are defined in the
19541954
19551955
19561956Customized managers
1957- >>>>>>>>>>>>>>>>>>>
1957+ """""""""""""""""""
19581958
19591959To create one's own manager, one creates a subclass of :class: `BaseManager ` and
19601960uses the :meth: `~BaseManager.register ` classmethod to register new types or
@@ -1981,7 +1981,7 @@ callables with the manager class. For example::
19811981
19821982
19831983Using a remote manager
1984- >>>>>>>>>>>>>>>>>>>>>>
1984+ """"""""""""""""""""""
19851985
19861986It is possible to run a manager server on one machine and have clients use it
19871987from other machines (assuming that the firewalls involved allow it).
@@ -2044,7 +2044,7 @@ client to access it remotely::
20442044.. _multiprocessing-proxy_objects :
20452045
20462046Proxy Objects
2047- ~~~~~~~~~~~~~
2047+ ^^^^^^^^^^^^^
20482048
20492049A proxy is an object which *refers * to a shared object which lives (presumably)
20502050in a different process. The shared object is said to be the *referent * of the
@@ -2196,7 +2196,7 @@ demonstrates a level of control over the synchronization.
21962196
21972197
21982198Cleanup
2199- >>>>>>>
2199+ """""""
22002200
22012201A proxy object uses a weakref callback so that when it gets garbage collected it
22022202deregisters itself from the manager which owns its referent.
@@ -2206,7 +2206,7 @@ any proxies referring to it.
22062206
22072207
22082208Process Pools
2209- ~~~~~~~~~~~~~
2209+ ^^^^^^^^^^^^^
22102210
22112211.. module :: multiprocessing.pool
22122212 :synopsis: Create pools of processes.
@@ -2442,7 +2442,7 @@ The following example demonstrates the use of a pool::
24422442.. _multiprocessing-listeners-clients :
24432443
24442444Listeners and Clients
2445- ~~~~~~~~~~~~~~~~~~~~~
2445+ ^^^^^^^^^^^^^^^^^^^^^
24462446
24472447.. module :: multiprocessing.connection
24482448 :synopsis: API for dealing with sockets.
@@ -2665,7 +2665,7 @@ wait for messages from multiple processes at once::
26652665.. _multiprocessing-address-formats :
26662666
26672667Address Formats
2668- >>>>>>>>>>>>>>>
2668+ """""""""""""""
26692669
26702670* An ``'AF_INET' `` address is a tuple of the form ``(hostname, port) `` where
26712671 *hostname * is a string and *port * is an integer.
@@ -2685,7 +2685,7 @@ an ``'AF_PIPE'`` address rather than an ``'AF_UNIX'`` address.
26852685.. _multiprocessing-auth-keys :
26862686
26872687Authentication keys
2688- ~~~~~~~~~~~~~~~~~~~
2688+ ^^^^^^^^^^^^^^^^^^^
26892689
26902690When one uses :meth: `Connection.recv <Connection.recv> `, the
26912691data received is automatically
@@ -2711,7 +2711,7 @@ Suitable authentication keys can also be generated by using :func:`os.urandom`.
27112711
27122712
27132713Logging
2714- ~~~~~~~
2714+ ^^^^^^^
27152715
27162716Some support for logging is available. Note, however, that the :mod: `logging `
27172717package does not use process shared locks so it is possible (depending on the
@@ -2759,7 +2759,7 @@ For a full table of logging levels, see the :mod:`logging` module.
27592759
27602760
27612761The :mod: `multiprocessing.dummy ` module
2762- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2762+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27632763
27642764.. module :: multiprocessing.dummy
27652765 :synopsis: Dumb wrapper around threading.
@@ -2818,7 +2818,7 @@ There are certain guidelines and idioms which should be adhered to when using
28182818
28192819
28202820All start methods
2821- ~~~~~~~~~~~~~~~~~
2821+ ^^^^^^^^^^^^^^^^^
28222822
28232823The following applies to all start methods.
28242824
@@ -2977,7 +2977,7 @@ Beware of replacing :data:`sys.stdin` with a "file like object"
29772977 For more information, see :issue: `5155 `, :issue: `5313 ` and :issue: `5331 `
29782978
29792979The *spawn * and *forkserver * start methods
2980- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2980+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29812981
29822982There are a few extra restriction which don't apply to the *fork *
29832983start method.
0 commit comments