Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00d7109

Browse files
authored
Normalize heading underline in multiprocessing.rst (#114923)
This gets rid of the mildly confusing `>>>>>>>' underlines which look vaguely like `diff` punctuation.
1 parent f3cdd64 commit 00d7109

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

Doc/library/multiprocessing.rst

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ will print to standard output ::
5656

5757

5858
The :class:`Process` class
59-
~~~~~~~~~~~~~~~~~~~~~~~~~~
59+
^^^^^^^^^^^^^^^^^^^^^^^^^^
6060

6161
In :mod:`multiprocessing`, processes are spawned by creating a :class:`Process`
6262
object and then calling its :meth:`~Process.start` method. :class:`Process`
@@ -102,7 +102,7 @@ necessary, see :ref:`multiprocessing-programming`.
102102
.. _multiprocessing-start-methods:
103103

104104
Contexts and start methods
105-
~~~~~~~~~~~~~~~~~~~~~~~~~~
105+
^^^^^^^^^^^^^^^^^^^^^^^^^^
106106

107107
Depending on the platform, :mod:`multiprocessing` supports three ways
108108
to start a process. These *start methods* are
@@ -231,7 +231,7 @@ library user.
231231

232232

233233
Exchanging objects between processes
234-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
234+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
235235

236236
:mod:`multiprocessing` supports two types of communication channel between
237237
processes:
@@ -283,7 +283,7 @@ processes:
283283

284284

285285
Synchronization between processes
286-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
286+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
287287

288288
:mod:`multiprocessing` contains equivalents of all the synchronization
289289
primitives from :mod:`threading`. For instance one can use a lock to ensure
@@ -309,7 +309,7 @@ mixed up.
309309

310310

311311
Sharing state between processes
312-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
312+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
313313

314314
As mentioned above, when doing concurrent programming it is usually best to
315315
avoid 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

401401
Using a pool of workers
402-
~~~~~~~~~~~~~~~~~~~~~~~
402+
^^^^^^^^^^^^^^^^^^^^^^^
403403

404404
The :class:`~multiprocessing.pool.Pool` class represents a pool of worker
405405
processes. 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

726726
Pipes and Queues
727-
~~~~~~~~~~~~~~~~
727+
^^^^^^^^^^^^^^^^
728728

729729
When using multiple processes, one generally uses message passing for
730730
communication 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

983983
Miscellaneous
984-
~~~~~~~~~~~~~
984+
^^^^^^^^^^^^^
985985

986986
.. function:: active_children()
987987

@@ -1150,7 +1150,7 @@ Miscellaneous
11501150

11511151

11521152
Connection Objects
1153-
~~~~~~~~~~~~~~~~~~
1153+
^^^^^^^^^^^^^^^^^^
11541154

11551155
.. currentmodule:: multiprocessing.connection
11561156

@@ -1292,7 +1292,7 @@ For example:
12921292

12931293

12941294
Synchronization primitives
1295-
~~~~~~~~~~~~~~~~~~~~~~~~~~
1295+
^^^^^^^^^^^^^^^^^^^^^^^^^^
12961296

12971297
.. currentmodule:: multiprocessing
12981298

@@ -1481,7 +1481,7 @@ object -- see :ref:`multiprocessing-managers`.
14811481

14821482

14831483
Shared :mod:`ctypes` Objects
1484-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1484+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14851485

14861486
It is possible to create shared objects using shared memory which can be
14871487
inherited by child processes.
@@ -1543,7 +1543,7 @@ inherited by child processes.
15431543

15441544

15451545
The :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

17111711
Managers
1712-
~~~~~~~~
1712+
^^^^^^^^
17131713

17141714
Managers provide a way to create data which can be shared between different
17151715
processes, 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

19561956
Customized managers
1957-
>>>>>>>>>>>>>>>>>>>
1957+
"""""""""""""""""""
19581958

19591959
To create one's own manager, one creates a subclass of :class:`BaseManager` and
19601960
uses the :meth:`~BaseManager.register` classmethod to register new types or
@@ -1981,7 +1981,7 @@ callables with the manager class. For example::
19811981

19821982

19831983
Using a remote manager
1984-
>>>>>>>>>>>>>>>>>>>>>>
1984+
""""""""""""""""""""""
19851985

19861986
It is possible to run a manager server on one machine and have clients use it
19871987
from other machines (assuming that the firewalls involved allow it).
@@ -2044,7 +2044,7 @@ client to access it remotely::
20442044
.. _multiprocessing-proxy_objects:
20452045

20462046
Proxy Objects
2047-
~~~~~~~~~~~~~
2047+
^^^^^^^^^^^^^
20482048

20492049
A proxy is an object which *refers* to a shared object which lives (presumably)
20502050
in 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

21982198
Cleanup
2199-
>>>>>>>
2199+
"""""""
22002200

22012201
A proxy object uses a weakref callback so that when it gets garbage collected it
22022202
deregisters itself from the manager which owns its referent.
@@ -2206,7 +2206,7 @@ any proxies referring to it.
22062206

22072207

22082208
Process 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

24442444
Listeners 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

26672667
Address 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

26872687
Authentication keys
2688-
~~~~~~~~~~~~~~~~~~~
2688+
^^^^^^^^^^^^^^^^^^^
26892689

26902690
When one uses :meth:`Connection.recv <Connection.recv>`, the
26912691
data received is automatically
@@ -2711,7 +2711,7 @@ Suitable authentication keys can also be generated by using :func:`os.urandom`.
27112711

27122712

27132713
Logging
2714-
~~~~~~~
2714+
^^^^^^^
27152715

27162716
Some support for logging is available. Note, however, that the :mod:`logging`
27172717
package 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

27612761
The :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

28202820
All start methods
2821-
~~~~~~~~~~~~~~~~~
2821+
^^^^^^^^^^^^^^^^^
28222822

28232823
The 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

29792979
The *spawn* and *forkserver* start methods
2980-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2980+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29812981

29822982
There are a few extra restriction which don't apply to the *fork*
29832983
start method.

0 commit comments

Comments
 (0)